[erlang-questions] Exit signals are funny things

Leo Liu sdl.web@REDACTED
Sat May 6 01:01:45 CEST 2017


On 2017-05-05 21:35 +0200, Richard Carlsson wrote:
> This stuff has been up several times before. Here's one from 2009 where I
> looked into it:
> http://erlang.org/pipermail/erlang-questions/2009-October/047190.html
>
> Then there's this one from 2010 where Robert answered:
> http://erlang.org/pipermail/erlang-questions/2010-December/055003.html
>
> And here's one from 2015 started by Robert:
> http://erlang.org/pipermail/erlang-questions/2015-October/086289.html
>
>    /Richard

All of these seem making sense. There is this little thing that is
confusing.

1> spawn_link(fun () -> exit(kill) end).
** exception exit: killed

exit(kill) is unlike other exit(Reason) i.e. it's rewritten as `killed'.

Leo




More information about the erlang-questions mailing list