Skip to content

Exit reason 'kill' is not converted to 'killed' #49

Closed
eriksoe opened this Issue Feb 5, 2011 · 1 comment

3 participants

@eriksoe
eriksoe commented Feb 5, 2011

...which means that an unconditional process termination is propagated unconditionally as well.
==== To reproduce:
1> process_flag(trap_exit, true).
false
2> link(spawn(fun()->timer:sleep(2000), exit(self(), kill) end)).
true

==== Observed behaviour:
3> ** exception error: killed
% I.e., initial process is slain as well.

==== Expected behaviour:
3> f(M), receive M->M end.
{'EXIT',<0.57.0>,killed}
% I.e., initial process receives a non-'kill' exit message.

@edwardw
edwardw commented Jun 21, 2011

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.