diff options
| author | John Birrell <jb@FreeBSD.org> | 1999-06-20 08:28:48 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1999-06-20 08:28:48 +0000 |
| commit | 02292f131acd0fc6c16b950f1e6b05e75de2cdcb (patch) | |
| tree | 0ff88e4b640389e399994c81f9addd13093029cb /lib/libpthread/thread/thr_sigaction.c | |
| parent | c2077034654a87e5a0517430c4d0c7d10721e484 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sigaction.c')
| -rw-r--r-- | lib/libpthread/thread/thr_sigaction.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_sigaction.c b/lib/libpthread/thread/thr_sigaction.c index 73a3b211b1fd..ed390d1451b7 100644 --- a/lib/libpthread/thread/thr_sigaction.c +++ b/lib/libpthread/thread/thr_sigaction.c @@ -29,6 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * + * $Id$ */ #include <signal.h> #include <errno.h> @@ -77,6 +78,9 @@ sigaction(int sig, const struct sigaction * act, struct sigaction * oact) gact.sa_mask = act->sa_mask; gact.sa_flags = 0; + /* Ensure the scheduling signal is masked: */ + sigaddset(&gact.sa_mask, _SCHED_SIGNAL); + /* * Check if the signal handler is being set to * the default or ignore handlers: |
