diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-01 04:06:17 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-01 04:06:17 +0400 |
commit | f611148366ee3934d16824f8a973177aaece0aa8 (patch) | |
tree | b27e26f288e5497966f358cb47783a1bff9a5d19 /winsup/cygwin/sigproc.cc | |
parent | ab57d1463946e37a5b7ce25498b3b42c3f617666 (diff) |
* sigproc.h (class sigframe): Implement 'unregister()' method.
(sigframe::~sigframe): Use unregister method.
(sigframe::call_signal_handler): Declare new method.
* exceptions.cc (sigframe::call_signal_handler): New method. Unregisters
current sigframe before calling signal handler.
(setup_handler): Clear waiting threads prior to arming signal_arrived.
* syscalls.cc (_read): Change goto to loop. Recalculate sigframe inside of
loop so that constructor is called when appropriate.
* wait.cc (wait4): Ditto.
* signal.cc: Change "sig" to "signal" in debugging messages throughout.
* sigproc.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 9eae394e8..9a8f602e1 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -736,7 +736,7 @@ sig_send (_pinfo *p, int sig, DWORD ebp) if (!wait_for_completion) { rc = WAIT_OBJECT_0; - sigproc_printf ("Not waiting for sigcomplete. its_me %d sig %d", its_me, sig); + sigproc_printf ("Not waiting for sigcomplete. its_me %d signal %d", its_me, sig); if (!its_me) ForceCloseHandle (thiscatch); } @@ -765,7 +765,7 @@ sig_send (_pinfo *p, int sig, DWORD ebp) { /* It's an error unless sig_loop_wait == 0 (the process is exiting). */ if (!no_signals_available ()) - system_printf ("wait for sig_complete event failed, sig %d, rc %d, %E", + system_printf ("wait for sig_complete event failed, signal %d, rc %d, %E", sig, rc); set_errno (ENOSYS); rc = -1; @@ -1144,7 +1144,7 @@ wait_sig (VOID *) (sigismember (&myself->getsigmask (), sig) || (sig != SIGCONT && ISSTATE (myself, PID_STOPPED)))) { - sigproc_printf ("sig %d blocked", sig); + sigproc_printf ("signal %d blocked", sig); break; } |