[erlang-patches] run_erl: propagate exit status

Magnus Henoch <>
Fri Sep 2 19:11:14 CEST 2011

Hi all,

Here is a patch that makes run_erl return the exit status of its child
process.  (Probably only useful when using run_erl without -daemon,
just for convenient logging.)

I added a signal handler for SIGALRM, since that appeared to be one of
the ways run_erl exits, but I haven't been able to trigger that in my
testing (it always exits because it can't read from the child's pty).
I would appreciate informed opinions about whether that part is
necessary and correct.

git fetch git://github.com/legoscia/otp.git run_erl_exit_status


More information about the erlang-patches mailing list