[erlang-questions] Issue in killing the process

Tue Oct 9 12:21:38 CEST 2018

On 2018年10月9日火曜日 10時18分20秒 JST Prakash Parmar wrote:
> As mentioned in exit/2<http://erlang.org/doc/man/erlang.html#exit-2> doc,
>  "... If Reason is the atom normal, Pid does not exit. If it is trapping exits, the exit signal is transformed into a message {'EXIT', From, normal} and delivered to its message queue. ..."
> use exit(whereis(Pid), Reason), where Reason will be anything than normal .

Indeed. Nice catch. I didn't even address the case where the process is trapping exits.

Like the old Raid commercial: "A call to `exit(Pid, kill)` kills bugs dead."


More information about the erlang-questions mailing list