diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-14 14:00:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-14 14:00:07 +0000 |
commit | a611ae50d5c1106988df7ec8b053efc332e35ae3 (patch) | |
tree | 0057df8d08fd439ed9bcfb06bd07538c6f2f9d6e /winsup/cygwin/sigproc.h | |
parent | 67483cb2cdee37aa435fd108cea5310a873925a3 (diff) | |
download | cygnal-a611ae50d5c1106988df7ec8b053efc332e35ae3.tar.gz cygnal-a611ae50d5c1106988df7ec8b053efc332e35ae3.tar.bz2 cygnal-a611ae50d5c1106988df7ec8b053efc332e35ae3.zip |
* exceptions.cc (sigtid): Remove declaration.
(handle_exceptions): Use _sig_tls rather than sigtid to determine if this is
the signal thread.
(set_signal_mask): Ditto for conditionalized CGF code.
* pinfo.cc (pinfo::exit): Exit the thread if we forcefully terminated the main
thread
* sigproc.cc (sigtid): Delete.
(_sig_tls): Define.
(sig_clear): Use _sig_tls rather than sigtid to determine if this is the signal
thread.
(sig_dispatch_pending): Ditto.
(wait_sig): Set _sig_tls here.
* dcrt0.cc (do_exit): Move sigproc_terminate call later since signal handling
was still needed for subsequent stuff. Call sigproc_terminate with new
exit_state value.
* pinfo.cc (pinfo::exit): Call sigproc_terminate with new exit_state value.
* sigproc.cc (proc_terminate): Remove unnecessary (void) parameter.
(sigproc_terminate): Ditto. Add new argument to accept exit state to be set.
(wait_sig): Reorganize __SIGEXIT handling. Add more debugging output.
* winsup.h (sigproc_terminate): Declare with new exit_state argument.
(exit_states): Reorganize to reflect new exit ordering of sigproc_terminate.
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 c135f32b3..a8895df7a 100644 --- a/winsup/cygwin/sigproc.h +++ b/winsup/cygwin/sigproc.h @@ -73,7 +73,7 @@ int __stdcall proc_subproc (DWORD, DWORD) __attribute__ ((regparm (2))); class _pinfo; void __stdcall proc_terminate (); void __stdcall sigproc_init (); -void __stdcall sigproc_terminate (); +void __stdcall sigproc_terminate (enum exit_states); bool __stdcall pid_exists (pid_t) __attribute__ ((regparm(1))); int __stdcall sig_send (_pinfo *, siginfo_t&, class _cygtls *tls = NULL) __attribute__ ((regparm (3))); int __stdcall sig_send (_pinfo *, int) __attribute__ ((regparm (2))); |