summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 1e9745b22..e67405527 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -744,7 +744,11 @@ setup_handler (int sig, void *handler, struct sigaction& siga, _threadinfo *tls)
bool interrupted = false;
if (tls->sig)
- goto out;
+ {
+ sigproc_printf ("trying to send sig %d but signal %d already armed",
+ sig, tls->sig);
+ goto out;
+ }
for (int i = 0; i < CALL_HANDLER_RETRY; i++)
{
@@ -1141,10 +1145,6 @@ call_signal_handler_now ()
void (*sigfunc) (int) = _my_tls.func;
(void) _my_tls.pop ();
-#ifdef DEBUGGING
- if (_my_tls.stackptr > (_my_tls.stack + 1))
- try_to_debug ();
-#endif
reset_signal_arrived ();
sigset_t oldmask = _my_tls.oldmask;
int this_errno = _my_tls.saved_errno;