[erlang-patches] Fix run_erl daemonizing on some platforms

Johannes Weißl jargon@REDACTED
Fri Jul 5 16:47:35 CEST 2013


Hello,

On our embedded system "run_erl" does not work when used with the
"-daemon" option (the logs show "Cannot dup"). I noticed that unlike
erlexec and epmd, run_erl does not redirect the standard streams to
/dev/null after closing them.

This patch adds the redirection to /dev/null, which fixes the problem.

git fetch git://github.com/weisslj/otp.git run-erl-redirect-dev-null

https://github.com/weisslj/otp/compare/erlang:maint...run-erl-redirect-dev-null
https://github.com/weisslj/otp/compare/erlang:maint...run-erl-redirect-dev-null.patch

Greetings,

Johannes Weißl



More information about the erlang-patches mailing list