[erlang-questions] Exit signals are funny things
Fri May 5 13:27:09 CEST 2017
Sigh, that means someone has been "thinking".
On 3 May 2017 at 18:05, Ben Murphy <benmmurphy@REDACTED> wrote:
> Well its a very deliberate decision by someone.
> BIF_P == rp ? ERTS_XSIG_FLG_NO_IGN_NORMAL :
> It sends ERTS_XSIG_FLG_NO_IGN_NORMAL if you are sending a signal to
> On Wed, May 3, 2017 at 2:03 PM, Robert Virding <rvirding@REDACTED> wrote:
> > So:
> > 1> Pid = spawn_link(fun() -> timer:sleep(infinity) end).
> > <0.59.0>
> > 2> exit(Pid, normal).
> > true
> > 3> flush().
> > ok
> > 4> exit(Pid, die).
> > ** exception exit: die
> > I spawn_link a process which is not trapping and send it the signal
> > which it ignores. As it should. I then send it the signal 'die' and it
> > crashes. As it should.
> > Now:
> > 5> exit(self(), normal).
> > ** exception exit: normal
> > Now I send myself the signal 'normal' and I die! So there is 'normal' and
> > there is 'normal' depending on to whom I send it.
> > Where's the logic in that?
> > Robert
> > P.S. More to come
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions