diff options
author | 2011-10-10 08:21:06 +0000 | |
---|---|---|
committer | 2011-10-10 08:21:06 +0000 | |
commit | 4660f7dff9e23f127c6d492a0578156c571024b7 (patch) | |
tree | 3418226e6614224756c8da9ae58bba511480ecd8 | |
parent | Test for the wait*() hang issue when SIGCHLD is ignored, as seen in (diff) | |
download | wireguard-openbsd-4660f7dff9e23f127c6d492a0578156c571024b7.tar.xz wireguard-openbsd-4660f7dff9e23f127c6d492a0578156c571024b7.zip |
allow for this to timeout rather than hanging forever.
-rw-r--r-- | regress/lib/libpthread/signals/ignore_sigchild/ignore_sigchild.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/lib/libpthread/signals/ignore_sigchild/ignore_sigchild.c b/regress/lib/libpthread/signals/ignore_sigchild/ignore_sigchild.c index d858bb9241b..c08f38ccc38 100644 --- a/regress/lib/libpthread/signals/ignore_sigchild/ignore_sigchild.c +++ b/regress/lib/libpthread/signals/ignore_sigchild/ignore_sigchild.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ignore_sigchild.c,v 1.1 2011/10/09 23:46:50 fgsch Exp $ */ +/* $OpenBSD: ignore_sigchild.c,v 1.2 2011/10/10 08:21:06 fgsch Exp $ */ /* * Federico G. Schwindt <fgsch@openbsd.org>, 2011. Public Domain. */ @@ -26,6 +26,7 @@ main(int argc, char **argv) break; } + CHECKe(alarm(2)); ASSERT(wait(&status) == -1); ASSERT(errno == ECHILD); SUCCEED; |