gen_server monitoring a process

Filipe David Manana fdmanana@REDACTED
Mon Jul 12 17:10:33 CEST 2010


Hi,

Let's say I have a gen_server monitoring a process P1.
Is it possible that, a gen_server receives first the {'DOWN', ...} message
(handled by handle_info) before any other message sent from the monitored
process (through a gen_server:cast or gen_server:call) ?

If I weren't using a gen_server, than that would depend on the order of my
receive branches.

cheers



-- 
Filipe David Manana,
fdmanana@REDACTED

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."


More information about the erlang-questions mailing list