[erlang-questions] erlang:exit/1 and erlang:exit/2
Wed Jul 30 10:04:25 CEST 2014
On 2014-07-30 05:11 +0800, Tony Rogvall wrote:
> BIFs with one (and more) argument are called from emulator loop in beam_emu.c
> (R17 source)
> beam_emu.c line 2779 in opcode "call_bif_e"
> and line 3571 in opcode "apply_bif"
> and line 2610 in "i_gc_bif1_jIsId"
> and the rest is just a matter of reading code.
> Hint. The function handler_error may be a good start to look in.
> Have fun :-)
Thank you for the hint and pointers.
exit/1 is handled in OpCase(raise_ss) in beam_emu.c => handle_error =>
terminate_proc (when the exception is not caught).
More information about the erlang-questions