[erlang-questions] exit (kill) vs. exit(PID,kill)

Shahrdad Shadab <>
Tue Mar 6 20:18:26 CET 2012


I am amazed by difference between the effects of exit (kill) and exit
(PID,kill).

Assume PA and PB are two processes and PA has its trap_exit set to true.
When PB evaluates exit(kill), the process terminates but PA doesn't die and
actually gets message {EXIT,PB,kill}.
However When PB evaluates exit(PA,kill), PA dies right a way !

Will someone please explain the intention behind this behavior? (or I am
missing something!

Thanks a lot

-- 
Software Architect & Computer Scientist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120306/55c4fc36/attachment.html>


More information about the erlang-questions mailing list