summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_sig.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_sig.c')
-rw-r--r--lib/libkse/thread/thr_sig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libkse/thread/thr_sig.c b/lib/libkse/thread/thr_sig.c
index 71a88ef..9ce53a0 100644
--- a/lib/libkse/thread/thr_sig.c
+++ b/lib/libkse/thread/thr_sig.c
@@ -575,6 +575,9 @@ thread_sig_add(pthread_t pthread, int sig, int has_args)
restart = _thread_sigact[sig - 1].sa_flags & SA_RESTART;
+ /* Make sure this signal isn't still in the pending set: */
+ sigdelset(&pthread->sigpend, sig);
+
/*
* Process according to thread state:
*/
OpenPOWER on IntegriCloud