[erlang-questions] Lost messages
Mon Jul 27 13:21:29 CEST 2009
Attila Rajmund Nohl (attila.r.nohl@REDACTED) said :
2009/7/27, paweł kamiński <kamiseq@REDACTED>:
> maybe event_manager could help here??
> In other words to have some process that guards that all processes that
> should receive msg, are still there, so you can link them and do some
> when you receive 'EXIT' signal from killed receiver. then you store PIDs
> list in that guard process and it can raise exception if you try to send
> to non existing PID.
> anyway I would like to here some comments about that too:)
This is still open to a race condition: what happens if the message
had been already sent, but the recepient process gets killed before it
reaches the receive statement? In this case the 'EXIT' signal would be
received after the message had been already sent...
More information about the erlang-questions