[erlang-questions] supervisor behaves differently if started from command line

Richard Andrews bbmaj7@REDACTED
Wed Feb 18 12:38:30 CET 2009


> erl -s mysup
> 
> The top level starts mysup.erl, runs the init callback and exits hence
> taking the supervisor with it. But when you start it via an
> application, the application blocks till it is explicitly killed.

If this is the problem, then using process_flag(trap_exit,true) should allow your supervisor to continue even though its linked parent has exited.


      Make Yahoo!7 your homepage and win a trip to the Quiksilver Pro. Find out more



More information about the erlang-questions mailing list