[erlang-questions] order of processes in supervisor

Tomasz Maciejewski ponton@REDACTED
Wed Mar 21 13:05:00 CET 2012

W dniu 21 marca 2012 12:55 użytkownik bartek <bartek@REDACTED> napisał:
> I read this one :) But the supervisor seems to trigger their startup
> but not wait for it to complete. At least this is what I observed - my
> child list is [A, B], and B in its init does "monitor(A)", and it
> crashes.

I'm pretty sure it waits (just have had a quick look at
supervisor.erl). What reason does it crash with? Maybe you call
monitor(pid()) instead of monitor(process, pid())?

Tomasz Maciejewski

More information about the erlang-questions mailing list