diff options
author | Christopher Faylor <me@cgf.cx> | 2013-04-09 01:01:19 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-04-09 01:01:19 +0000 |
commit | 9d2155089e8709977ef012cfdfd88d511b92d154 (patch) | |
tree | b2d6845c34da33952996e16a1e637f61268ae351 /winsup/cygwin/sigproc.h | |
parent | 037ad80a525e5be3088bcb3b34546498695e746f (diff) | |
download | cygnal-9d2155089e8709977ef012cfdfd88d511b92d154.tar.gz cygnal-9d2155089e8709977ef012cfdfd88d511b92d154.tar.bz2 cygnal-9d2155089e8709977ef012cfdfd88d511b92d154.zip |
* cygtls.h (_cygtls::reset_signal_arrived): Actually reset the signal_arrived
event.
(_cygtls::handle_SIGCONT): Declare ew function.
* cygwait.cc (is_cw_sig_handle): Delete.
(is_cw_sig_cont): New convenience define.
(cygwait): Clear signal if is_cw_sig_cont and we got a SIGCONT.
* cygwait.h (cw_wait_mask): Add cw_sig_cont.
* exceptions.cc (sig_handle_tty_stop): Tighten "incyg" region. Use cw_sig_cont
param for cygwait. Don't zero signal here outside of lock.
(sigpacket::setup_handler): Don't check for in_forkee since we will now never
get here in that state.
(_cygtls::handle_SIGCONT): Define new function.
(sigpacket::process): Call handle_SIGCONT early to deal with SIGCONT. Nuke
continue_now handling. Allow SIGKILL to kill a suspended process. Delete a
couple of now-unneeded labels.
(_cygtls::call_signal_handler): Reorganize setting of incyg within lock.
* sigproc.cc (pending_signals): Simplify.
(pending_signals::clear): New method.
(_cygtls::remove_wq): Reorganize to always close wq.thread_ev if it exists to
avoid handle leaks.
(sig_clear): Simplify by just calling sigq.clear().
(sig_dispatch_pending): Always call sigq.pending even in signal thread to force
another loop in wait_sig.
(sig_send): Remove a "goto out" just before out: label.
(pending_signals::add): Simplify.
(pending_signals::del): Delete.
(pending_signals::next): Delete.
(wait_sig): Define variable q to be the start of the signal queue. Just
iterate through sigq queue, deleting processed or zeroed signals. Only set
clearwait when the current signal is SIGCHLD.
* sigproc.h: Add a comment about an unused enum.
Diffstat (limited to 'winsup/cygwin/sigproc.h')
-rw-r--r-- | winsup/cygwin/sigproc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h index 9c70c2c2d..c4313f056 100644 --- a/winsup/cygwin/sigproc.h +++ b/winsup/cygwin/sigproc.h @@ -20,7 +20,7 @@ enum __SIGSTRACE = -(NSIG + 2), __SIGCOMMUNE = -(NSIG + 3), __SIGPENDING = -(NSIG + 4), - __SIGDELETE = -(NSIG + 5), + __SIGDELETE = -(NSIG + 5), /* Not currently used */ __SIGFLUSHFAST = -(NSIG + 6), __SIGHOLD = -(NSIG + 7), __SIGNOHOLD = -(NSIG + 8), |