I have a question about monitors.
1> Pid=spawn(fun() -> timer:sleep(500000) end).
2> exit(Pid, kill).
3> Ref=erlang:monitor(process, Pid).
4> flush().
The output of flush() in my shell is {'DOWN',#Ref<0.0.0.159>,process,<0.69.0>,noproc}
My question is: if process was killed before creating monitor, how come shell got the 'DOWN'
message?