[erlang-patches] run_erl: propagate exit status

Henrik Nord <>
Mon Sep 26 12:23:14 CEST 2011


On 09/02/2011 07:11 PM, Magnus Henoch wrote:
> 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
> _______________________________________________
> erlang-patches mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-patches
Thank you.

Your patch is included in 'pu'

-- 
/Henrik Nord Erlang/OTP



More information about the erlang-patches mailing list