[erlang-questions] Sending a message to a process that no longer exists

Jack Orenstein jao@REDACTED
Tue Dec 9 07:09:45 CET 2008


On Dec 9, 2008, at 12:58 AM, Rapsey wrote:

> Using the send operator is very common. To avoid endless waiting in  
> a receive statement you can use after:
>
> receive
>         {Server, Response} ->
>             ?DUMP({send_and_receive, received, Response}),
>             Response
>        after 1000 ->
>              void
>   end.

But this won't distinguish a dead process from a slow one.

Jack




More information about the erlang-questions mailing list