diff options
author | Christopher Faylor <me@cgf.cx> | 2002-01-11 02:24:06 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-01-11 02:24:06 +0000 |
commit | 06486d9e55dc159c565bda7894e426033f4c9685 (patch) | |
tree | b62ad34c3ca0ec4a38551577b3755592670b7c38 /winsup/cygwin/exceptions.cc | |
parent | bb5225c236040065b2cefb6b143de95970b0313a (diff) | |
download | cygnal-06486d9e55dc159c565bda7894e426033f4c9685.tar.gz cygnal-06486d9e55dc159c565bda7894e426033f4c9685.tar.bz2 cygnal-06486d9e55dc159c565bda7894e426033f4c9685.zip |
* exceptions.cc (sig_handle): Accept a second argument indicating whether the
signal came from this process or not.
* sigproc.h: Reflect sig_handle arg change.
* signal.cc (kill_pgrp): Add sigframe info.
(abort): New function. Eliminates newlib function of same name.
* sigproc.cc (wait_sig): Pass "signal from this process" value as arg 2.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index a3107e8b3..98bb75960 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -893,7 +893,7 @@ setup_handler (int sig, void *handler, struct sigaction& siga) #error "Need to supply machine dependent setup_handler" #endif -/* CGF Keyboard interrupt handler. */ +/* Keyboard interrupt handler. */ static BOOL WINAPI ctrl_c_handler (DWORD type) { @@ -963,7 +963,7 @@ set_process_mask (sigset_t newmask) } int __stdcall -sig_handle (int sig) +sig_handle (int sig, bool thisproc) { int rc = 0; @@ -1011,7 +1011,7 @@ sig_handle (int sig) if (handler == (void *) SIG_DFL) { if (sig == SIGCHLD || sig == SIGIO || sig == SIGCONT || sig == SIGWINCH - || sig == SIGURG || (hExeced && sig == SIGINT)) + || sig == SIGURG || (thisproc && hExeced && sig == SIGINT)) { sigproc_printf ("default signal %d ignored", sig); goto done; |