mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
(tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
This commit is contained in:
parent
0994e2b880
commit
97b6614c20
@ -776,6 +776,7 @@ tf_sigwait (void *arg)
|
||||
|
||||
/* Block SIGUSR1. */
|
||||
sigset_t mask;
|
||||
sigemptyset (&mask);
|
||||
sigaddset (&mask, SIGUSR1);
|
||||
if (pthread_sigmask (SIG_BLOCK, &mask, NULL) != 0)
|
||||
{
|
||||
@ -819,6 +820,7 @@ tf_sigwaitinfo (void *arg)
|
||||
|
||||
/* Block SIGUSR1. */
|
||||
sigset_t mask;
|
||||
sigemptyset (&mask);
|
||||
sigaddset (&mask, SIGUSR1);
|
||||
if (pthread_sigmask (SIG_BLOCK, &mask, NULL) != 0)
|
||||
{
|
||||
@ -863,6 +865,7 @@ tf_sigtimedwait (void *arg)
|
||||
|
||||
/* Block SIGUSR1. */
|
||||
sigset_t mask;
|
||||
sigemptyset (&mask);
|
||||
sigaddset (&mask, SIGUSR1);
|
||||
if (pthread_sigmask (SIG_BLOCK, &mask, NULL) != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user