aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-01-20 23:13:03 +0000
committerChristopher Faylor <me@cgf.cx>2002-01-20 23:13:03 +0000
commitd7c16d8da37db5393ef4361a7005e22bf08d7e35 (patch)
tree2a5065d9e548fc5e855a436a31e788587d11d527 /winsup/cygwin/exceptions.cc
parent186f78be1992c7421030d84a54610af150fd9f68 (diff)
downloadnewlib-d7c16d8da37db5393ef4361a7005e22bf08d7e35.zip
newlib-d7c16d8da37db5393ef4361a7005e22bf08d7e35.tar.gz
newlib-d7c16d8da37db5393ef4361a7005e22bf08d7e35.tar.bz2
* exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid when
detecting if we should actually handle CTRL-C.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index b608e13..818b78a 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -923,7 +923,7 @@ ctrl_c_handler (DWORD type)
/* We're only the process group leader when we have a valid pinfo structure.
If we don't have one, then the parent "stub" will handle the signal. */
- if (!pinfo (GetCurrentProcessId ()))
+ if (!pinfo (cygwin_pid (GetCurrentProcessId ())))
return TRUE;
tty_min *t = cygwin_shared->tty.get_tty (myself->ctty);