diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2012-06-29 00:29:18 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2012-06-29 00:29:18 +0000 |
commit | 6187d8176c8f8fec89d3ac9aff061acc7ed645a5 (patch) | |
tree | 069c3168f4f459e28a8caa721ad587acf7690198 /regress | |
parent | 81caaa371839ec3d304a2904e83d10484a5c73d9 (diff) |
Clear out the sigset_t again before calling sigpending() to make sure
sigpending() actually sets it and it wasn't just still set from
calling sigprocmask().
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/kern/sigpending/sigpending.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/sys/kern/sigpending/sigpending.c b/regress/sys/kern/sigpending/sigpending.c index 7bc3abcd96c..ea3a36e23dd 100644 --- a/regress/sys/kern/sigpending/sigpending.c +++ b/regress/sys/kern/sigpending/sigpending.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sigpending.c,v 1.1 2012/06/29 00:21:55 matthew Exp $ */ +/* $OpenBSD: sigpending.c,v 1.2 2012/06/29 00:29:17 matthew Exp $ */ /* * Written by Matthew Dempsky, 2011. * Public domain. @@ -16,6 +16,7 @@ main() assert(sigaddset(&set, SIGUSR1) == 0); assert(sigprocmask(SIG_BLOCK, &set, NULL) == 0); assert(raise(SIGUSR1) == 0); + assert(sigemptyset(&set) == 0); assert(sigpending(&set) == 0); assert(sigismember(&set, SIGUSR1) == 1); |