summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-04-18 01:46:57 +0000
committerChristopher Faylor <me@cgf.cx>2011-04-18 01:46:57 +0000
commit2d077d7c6df0dabf121b75b1493eb2d22f845b6e (patch)
tree43bfdbaddb6ce5a809b2ba4027f962c11459584d
parentfdcae03c0fc805f74b0060ae398ff561742a982b (diff)
downloadcygnal-2d077d7c6df0dabf121b75b1493eb2d22f845b6e.tar.gz
cygnal-2d077d7c6df0dabf121b75b1493eb2d22f845b6e.tar.bz2
cygnal-2d077d7c6df0dabf121b75b1493eb2d22f845b6e.zip
* * signal.cc (_pinfo::kill): Set this_process_state when process exists.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/signal.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3530834cf..93f690201 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2011-04-17 Christopher Faylor <me.cygwin2011@cgf.cx>
+ * * signal.cc (_pinfo::kill): Set this_process_state when process
+ exists.
+
+2011-04-17 Christopher Faylor <me.cygwin2011@cgf.cx>
+
* signal.cc (_pinfo::kill): Return 0 when attempting to test for
existence of an existed process which has not yet been reaped.
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc
index 41eb03ec5..fed7b27ba 100644
--- a/winsup/cygwin/signal.cc
+++ b/winsup/cygwin/signal.cc
@@ -229,6 +229,7 @@ _pinfo::kill (siginfo_t& si)
if (exists ())
{
bool sendSIGCONT;
+ this_process_state = process_state;
if ((sendSIGCONT = (si.si_signo < 0)))
si.si_signo = -si.si_signo;