Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-06-16 21:09:19 +0400
committerChristopher Faylor <me@cgf.cx>2001-06-16 21:09:19 +0400
commit99a5bd2fab6ba7e81ffa3d0709199b75264a3651 (patch)
treef0fba41311108a8d0f33025cd6bee718e864d055 /winsup/cygwin/signal.cc
parent947ab99ee964fe52e1c02f2d6e63e50bb533fcc0 (diff)
* exceptions.cc (sig_handle_tty_stop): Reset PID_STOPPED if not actually
stopping. * fhandler_console.cc (fhandler_console::fixup_after_fork): Don't set controlling terminal if just inheriting a handle. (fhandler_console::fixup_after_exec): Ditto. * fhandler_tty.cc (fhandler_tty_slave::init): Ditto. * signal.cc (kill_worker): Set appropriate errno if proc_exists determines that process does not really exist.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r--winsup/cygwin/signal.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc
index 714c31f4b..fcb82cd11 100644
--- a/winsup/cygwin/signal.cc
+++ b/winsup/cygwin/signal.cc
@@ -160,7 +160,11 @@ kill_worker (pid_t pid, int sig)
dest = myself_nowait_nonmain;
#endif
if (sig == 0)
- res = proc_exists (dest) ? 0 : -1;
+ {
+ res = proc_exists (dest) ? 0 : -1;
+ if (res < 0)
+ set_errno (ESRCH);
+ }
else if ((res = sig_send (dest, sig)))
{
sigproc_printf ("%d = sig_send, %E ", res);