diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-09-06 21:12:53 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-09-06 21:12:53 +0000 |
commit | d482d2a33ea8b12504eb0aef363c9a85d0ec4999 (patch) | |
tree | cf105e35e8fc193ceb206b96e3bec1b744a9a9b3 /sysdeps | |
parent | 8cb9c6509bde1537467b3432eb38ac26cb7f5e11 (diff) | |
download | glibc-d482d2a33ea8b12504eb0aef363c9a85d0ec4999.tar.gz glibc-d482d2a33ea8b12504eb0aef363c9a85d0ec4999.tar.xz glibc-d482d2a33ea8b12504eb0aef363c9a85d0ec4999.zip |
Update.
* sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/posix/signal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/posix/signal.c b/sysdeps/posix/signal.c index 2e0cf64de3..b1c3258b08 100644 --- a/sysdeps/posix/signal.c +++ b/sysdeps/posix/signal.c @@ -1,5 +1,5 @@ /* BSD-like signal function. - Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1991, 1992, 1996, 1997, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -40,7 +40,8 @@ __bsd_signal (sig, handler) } act.sa_handler = handler; - if (__sigemptyset (&act.sa_mask) < 0) + if (__sigemptyset (&act.sa_mask) < 0 + || __sigaddset (&act.sa_mask, sig) < 0) return SIG_ERR; act.sa_flags = __sigismember (&_sigintr, sig) ? 0 : SA_RESTART; if (__sigaction (sig, &act, &oact) < 0) |