I have a question about timing of monitored/linked process dying, and I can't think of how to test it in practice. Here is the scenario I am worried about.
Let's say I have a process called master and slave.
mastersetstrap_exittotrue.masterdoes{ok, Pid} = slave:start_link()thus linking the two.masterdoes the equivalent ofgen_server:call(Pid, Msg).- Before the message arrives at
Pidthat process crashes.
Question:
- Will
masterreceive anEXITmessage first? or - Will
masterfail with{noproc,{gen_server..exception sincePidis already dead?
