]> Cypherpunks repositories - gostls13.git/commit
Implement error handling on process monitor exit. Now, before
authorAustin Clements <aclements@csail.mit.edu>
Thu, 15 Oct 2009 19:59:59 +0000 (12:59 -0700)
committerAustin Clements <aclements@csail.mit.edu>
Thu, 15 Oct 2009 19:59:59 +0000 (12:59 -0700)
commit049501ce4c10093ba817f48aff4fa07c8984d796
tree8120023948d1a2fec9247faa39cf8cdc9313300a
parent974b23f569a67499eb727dda0219759dd5466e27
Implement error handling on process monitor exit.  Now, before
sending any message to the monitor, the sender must check a
"ready" channel.  Before exiting, the monitor records its exit
error and closes this channel, ensuring that all later reads
from the ready channel will immediately return false.

Inspired by
http://chplib.wordpress.com/2009/09/30/poison-concurrent-termination/

R=rsc
APPROVED=rsc
DELTA=47  (27 added, 11 deleted, 9 changed)
OCL=35782
CL=35784
src/pkg/debug/proc/proc_linux.go