* sigproc.cc (send_sig): Don't report an error if WriteFile succeeds.

This commit is contained in:
Christopher Faylor 2014-07-15 14:57:30 +00:00
parent 50e4a3cdff
commit 0db2f28fd6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-07-15 Christopher Faylor <me.cygwin2014@cgf.cx>
* sigproc.cc (send_sig): Don't report an error if WriteFile succeeds.
2014-07-14 Christopher Faylor <me.cygwin2014@cgf.cx>
* sigproc.cc (send_sig): Fix bad format in diagnostic output.

View File

@ -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. */