From d7c16d8da37db5393ef4361a7005e22bf08d7e35 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 20 Jan 2002 23:13:03 +0000 Subject: [PATCH] * exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid when detecting if we should actually handle CTRL-C. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/exceptions.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9a8c57399..1a2f80141 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-01-20 Christopher Faylor + + * exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid + when detecting if we should actually handle CTRL-C. + 2002-01-19 Christopher Faylor * Makefile.in (new-cygwin1.dll): Revert previous change. libsupc++.a diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index b608e1339..818b78aca 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);