[erlang-questions] Fwd: Report errors when using "-detached" option
ERLANG
erlangy@REDACTED
Fri Nov 14 14:46:57 CET 2008
HI Claes,
> This is indeed a real problem. If daemon startup fails, you typically
> want to indicate that through a call to exit(error_code) so that the
> invoker can check $?
>
Hmmm. Calling "exit(error_code)" isn't reported to the invoker.
So $? always equals to 0.
Is this an expected behaviour of calling "exit(error_code)" when using
"-detached" flag.
I've checked that on both Linux and OSX Leopard with RB12-5.
Regards
Ferret
More information about the erlang-questions
mailing list