[erlang-bugs] Re: Re: [erlang-questions] Erlang's process not killed by exit signalreasoned by "kill"

Ulf Wiger ulf.wiger@REDACTED
Thu Oct 29 10:57:37 CET 2009


Joe Armstrong wrote:
>
> The distinction between messages and signals is subtle.

One way to verify that it is indeed as Joe says:

Eshell V5.6.5  (abort with ^G)
1> P = spawn(fun() -> timer:sleep(infinity) end).
<0.32.0>
2> P ! {'EXIT',self(),foo}.
{'EXIT',<0.30.0>,foo}
3> is_process_alive(P).
true
4> exit(P,foo).
true
5> is_process_alive(P).
false
6>

In other words, you cannot fake an exit signal by sending
an {'EXIT',P,R} message.

BR,
Ulf W
-- 
Ulf Wiger
CTO, Erlang Training & Consulting Ltd
http://www.erlang-consulting.com


More information about the erlang-bugs mailing list