[erlang-questions] Lost messages

paweł kamiński kamiseq@REDACTED
Mon Jul 27 13:21:29 CEST 2009


just resend

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
logic
> 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
msg
> 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...

pozdrawiam
Paweł Kamiński

kamiseq@REDACTED
pkaminski.prv@REDACTED
______________________


More information about the erlang-questions mailing list