Matthew Sackman <matthew at ...> writes:
> Just link directly to either the Pid of the connection or the Pid of the
> channel. If either go down abnormally, it'll take out your process (and
> vice versa - in fact, you may want to just monitor rather than link).
>> Also, the Pid you get back from amqp_connection:start/1 is _not_ the Pid of
the
> supervisor. It's the Pid of the amqp_{network,direct}_connection
> process. The Pid of the connection_sup is never returned. Fairly soon,
> the entire client will become a real application and then it will be
> properly visible in things like appmon.
Hi Matthew,
Ok, I understand all that. Linking to channel or connection works fine. Just out
of curiosity, one last question... What stops me from being able to add the
connection process to my supervisor child list? The process seems to be a
gen_server so it should be ok to do that, right? Or, is it not possible because
it is already on another supervisor's child list?
Thanks,
Erik