diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-05-04 20:37:07 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-05-04 20:37:07 +0000 |
| commit | 59cc2dcac73d4a11a44dd324d1c102ac42288352 (patch) | |
| tree | 97bad8564ade626e6de9263c6c4d416a2e06e2de /lib/libpthread/thread/thr_sig.c | |
| parent | 6c17772ce494db9e66482a2aa7079a6f90f9ec55 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sig.c')
| -rw-r--r-- | lib/libpthread/thread/thr_sig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c index 71a88efe4a30..9ce53a0c702c 100644 --- a/lib/libpthread/thread/thr_sig.c +++ b/lib/libpthread/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: */ |
