From 2d077d7c6df0dabf121b75b1493eb2d22f845b6e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 18 Apr 2011 01:46:57 +0000 Subject: [PATCH] * * signal.cc (_pinfo::kill): Set this_process_state when process exists. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/signal.cc | 1 + 2 files changed, 6 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3530834cf..93f690201 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-04-17 Christopher Faylor + + * * signal.cc (_pinfo::kill): Set this_process_state when process + exists. + 2011-04-17 Christopher Faylor * signal.cc (_pinfo::kill): Return 0 when attempting to test for 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;