trifork / erjang

A JVM-based Erlang VM
http://www.erjang.org
Apache License 2.0
725 stars 62 forks source link

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

Closed eriksoe closed 13 years ago

eriksoe commented 13 years ago

...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 commented 13 years ago

Fixed.