From 0db2f28fd613bfffeb994e09ac3b1d41c5cbf51a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 15 Jul 2014 14:57:30 +0000 Subject: * sigproc.cc (send_sig): Don't report an error if WriteFile succeeds. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/sigproc.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 95beb4be1..c8ed712ff 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2014-07-15 Christopher Faylor + + * sigproc.cc (send_sig): Don't report an error if WriteFile succeeds. + 2014-07-14 Christopher Faylor * sigproc.cc (send_sig): Fix bad format in diagnostic output. diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 9bc42e82c..a530c89ca 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -635,7 +635,7 @@ sig_send (_pinfo *p, siginfo_t& si, _cygtls *tls) } DWORD nb; - if (!WriteFile (sendsig, leader, packsize, &nb, NULL) || nb != packsize) + if (!WriteFile (sendsig, leader, packsize, &nb, NULL)) { /* Couldn't send to the pipe. This probably means that the process is exiting. */ -- cgit v1.2.3