summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_sig.c')
-rw-r--r--lib/libpthread/thread/thr_sig.c23
1 files changed, 3 insertions, 20 deletions
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c
index 0f18477..dc6d209 100644
--- a/lib/libpthread/thread/thr_sig.c
+++ b/lib/libpthread/thread/thr_sig.c
@@ -628,27 +628,10 @@ _thread_sig_send(pthread_t pthread, int sig)
!sigismember(&pthread->sigmask, sig)) {
/* Perform any state changes due to signal arrival: */
thread_sig_check_state(pthread, sig);
-
-#ifndef _NO_UNDISPATCH
- if (_thread_run != pthread) {
- /*
- * Make a note to call the signal handler once
- * the signaled thread is running. This is
- * necessary in order to make sure that the
- * signal is delivered on the correct stack.
- */
- pthread->undispatched_signals++;
- } else {
-#endif
- /* Call the installed signal handler. */
- _thread_sig_deliver(pthread, sig);
-#ifndef _NO_UNDISPATCH
- }
-#endif
- } else {
- /* Increment the pending signal count. */
- sigaddset(&pthread->sigpend,sig);
}
+
+ /* Increment the pending signal count. */
+ sigaddset(&pthread->sigpend,sig);
}
}
OpenPOWER on IntegriCloud