[erlang-questions] Clean/ignore dead process messages

Witold Baryluk baryluk@REDACTED
Thu Aug 20 16:08:38 CEST 2009


Dnia 2009-08-20, czw o godzinie 15:58 +0200, Petr Sturc pisze:
> Folks,
> Is there a way to remove all messages from killed/dead process from other's
> process inbox?
> Or do you see some other way to ensure that the data are not lost?

you can link/1 to it, and when it dies, you will also die, efectivelly,
cleaning this queue.

You can also monitor/2 process, and scan queue for the pid of process
died.


-- 
Witold Baryluk <baryluk@REDACTED>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: To jest cz??? wiadomo?ci podpisana cyfrowo
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090820/b92cf110/attachment.bin>


More information about the erlang-questions mailing list