[erlang-patches] run_erl: propagate exit status

Magnus Henoch magnus.henoch@REDACTED
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
https://github.com/legoscia/otp/commit/29364cf9a6e1fcfd032503ff9888cffc4327b867

Regards,
Magnus



More information about the erlang-patches mailing list