summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pinfo.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-12-22 16:59:03 +0000
committerChristopher Faylor <me@cgf.cx>2004-12-22 16:59:03 +0000
commit9bc36097c9a1aaeb2665a5bb28c4b84246970f60 (patch)
treedbda810383fea9fecd5c4538af0991ab1e879e65 /winsup/cygwin/pinfo.cc
parent9c0d960d7fd60493bc5336061bb65ba02f8dbdbe (diff)
downloadcygnal-9bc36097c9a1aaeb2665a5bb28c4b84246970f60.tar.gz
cygnal-9bc36097c9a1aaeb2665a5bb28c4b84246970f60.tar.bz2
cygnal-9bc36097c9a1aaeb2665a5bb28c4b84246970f60.zip
* pinfo.cc (proc_waiter): Zero wait_thread in child to avoid races with process
termination. * cygthread.cc (cygthread::terminate): Clumsily detect when h has gone away and attempt no further action.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index a26336c98..508ed5cb6 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -763,6 +763,7 @@ proc_waiter (void *arg)
}
sigproc_printf ("exiting wait thread for pid %d", pid);
+ vchild.wait_thread = NULL;
_my_tls._ctinfo->release (); /* return the cygthread to the cygthread pool */
return 0;
}