summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2011-10-10 08:21:07 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2011-10-10 08:21:07 +0000
commit106be47d6a874e725696aa7a35fe56d7fc9a6a2c (patch)
treea474caf2534fb0d0da0431ec23001a82c40a08c3 /regress/lib
parent9eab7b59e4b626702c94f9459c2146f792aa7de9 (diff)
allow for this to timeout rather than hanging forever.
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libpthread/signals/ignore_sigchild/ignore_sigchild.c3
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;