[erlang-questions] msg mailbox and gen_svr shutdown

Andy Richards <>
Wed May 9 11:05:56 CEST 2012


Hi,

I can't seem to see any confirmation in the documentation so was wondering if anyone could confirm if messages are still sent to a supervised gen_svr following a shutdown message?

If so how do I cleanly shutdown my gen_svr without loosing messages? I read in the supervisor child spec that a shutdown can be set to infinity which i hoped would allow me to process the msg's in my mailbox but if I do this will my module continue to receive messages from other processes? Is my approach flawed and if so what other ways are there to cleanly shutting down my gen_svr without loosing messages?

Many thanks,

Andy.



More information about the erlang-questions mailing list