diff options
author | Christopher Faylor <me@cgf.cx> | 2014-02-09 18:31:37 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2014-02-09 18:31:37 +0000 |
commit | 01fc6f8d21299ef8e196d2155cd35973d08f398e (patch) | |
tree | fe5aa635f93b79dff6f9907837fe75eda95271ca | |
parent | d0e5dd3abe4f93dca0288c9eb18a7a6e660a3b8f (diff) | |
download | cygnal-01fc6f8d21299ef8e196d2155cd35973d08f398e.tar.gz cygnal-01fc6f8d21299ef8e196d2155cd35973d08f398e.tar.bz2 cygnal-01fc6f8d21299ef8e196d2155cd35973d08f398e.zip |
* sigproc.cc (sig_send): Don't bother with an error message if we are exiting.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/sigproc.cc | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index be0a3f7fa..644930c36 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2014-02-09 Christopher Faylor <me.cygwin2014@cgf.cx> + + * sigproc.cc (sig_send): Don't bother with an error message if we are + exiting. + 2014-02-08 Corinna Vinschen <corinna@vinschen.de> * miscfuncs.h (class NT_readline): New class to implement line-wise diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 2dfec5a0b..71b407d28 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -639,12 +639,9 @@ sig_send (_pinfo *p, siginfo_t& si, _cygtls *tls) sigproc_printf ("WriteFile for pipe %p failed, %E", sendsig); ForceCloseHandle (sendsig); } - else - { - if (!p->exec_sendsig) - system_printf ("error sending signal %d to pid %d, pipe handle %p, %E", - si.si_signo, p->pid, sendsig); - } + else if (!p->exec_sendsig && !exit_state) + system_printf ("error sending signal %d, pipe handle %p, nb %u, packsize %u, %E", + si.si_signo, p->pid, sendsig, nb, packsize); if (GetLastError () == ERROR_BROKEN_PIPE) set_errno (ESRCH); else |