From: Jakub Jelinek Date: Fri, 29 Aug 2003 15:02:43 +0000 (+0000) Subject: (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add sigemptyset before sigaddset.... X-Git-Tag: cvs/glibc-2_3_3~318 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97b6614c20dbc98776699ee19fc6d5e3f5d74a68;p=platform%2Fupstream%2Fglibc.git (tf_sigwait, tf_sigwaitinfo, tf_sigtimedwait): Add sigemptyset before sigaddset. Reported by jreiser@BitWagon.com. --- diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c index d6d9f69..8af6d42 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) {