[erlang-questions] Fwd: Report errors when using "-detached" option
Fri Nov 14 15:32:53 CET 2008
>>> This is indeed a real problem. If daemon startup fails, you
>>> 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
>> "-detached" flag.
> halt(error_code) works.
No, It doesn't.
More information about the erlang-questions