aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2003-08-29 15:02:43 +0000
committerJakub Jelinek <jakub@redhat.com>2003-08-29 15:02:43 +0000
commit97b6614c20dbc98776699ee19fc6d5e3f5d74a68 (patch)
treef587cc0d58639323646127fa09cba72e1a26e9dc /nptl/tst-cancel4.c
parentUpdate. (diff)
downloadglibc-97b6614c20dbc98776699ee19fc6d5e3f5d74a68.tar.gz
glibc-97b6614c20dbc98776699ee19fc6d5e3f5d74a68.tar.bz2
glibc-97b6614c20dbc98776699ee19fc6d5e3f5d74a68.zip
(tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add sigemptyset before sigaddset. Reported by jreiser@BitWagon.com.
Diffstat (limited to 'nptl/tst-cancel4.c')
-rw-r--r--nptl/tst-cancel4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c
index d6d9f69f5f..8af6d422ce 100644
--- a/nptl/tst-cancel4.c
+++ b/nptl/tst-cancel4.c
@@ -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)
{