diff options
author | Christopher Faylor <me@cgf.cx> | 2005-01-15 23:43:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-01-15 23:43:42 +0000 |
commit | fdd857a1f6d5e68b212aaca8572f6b6c13b080d8 (patch) | |
tree | 815d4dee29809bdc114695dd60d4e8ffc2010f24 | |
parent | bbb86f974e4095362ef1a8e8a5a6c66703f50f94 (diff) | |
download | newlib-fdd857a1f6d5e68b212aaca8572f6b6c13b080d8.zip newlib-fdd857a1f6d5e68b212aaca8572f6b6c13b080d8.tar.gz newlib-fdd857a1f6d5e68b212aaca8572f6b6c13b080d8.tar.bz2 |
* sigproc.cc (sig_send): Don't complain if attempt to send signal to myself
fails after I've "execed".
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/sigproc.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8d42ff3..f21e37c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-01-15 Christopher Faylor <cgf@timesys.com> + + * sigproc.cc (sig_send): Don't complain if attempt to send signal to + myself fails after I've "execed". + 2005-01-14 Corinna Vinschen <corinna@vinschen.de> * fhandler_disk_file.cc (fhandler_disk_file::facl): Pretend successful diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 1f65712..a87f158 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -663,9 +663,9 @@ sig_send (_pinfo *p, siginfo_t& si, _cygtls *tls) { if (no_signals_available ()) sigproc_printf ("I'm going away now"); - else if (!hExeced) + else if (!p->exec_sendsig) system_printf ("error sending signal %d to pid %d, pipe handle %p, %E", - si.si_signo, p->pid, sendsig); + si.si_signo, p->pid, sendsig); set_errno (EACCES); } goto out; |