* exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid when

detecting if we should actually handle CTRL-C.
This commit is contained in:
Christopher Faylor 2002-01-20 23:13:03 +00:00
parent 186f78be19
commit d7c16d8da3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-01-20 Christopher Faylor <cgf@redhat.com>
* 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 <cgf@redhat.com>
* Makefile.in (new-cygwin1.dll): Revert previous change. libsupc++.a

View File

@ -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);