diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2005-10-31 04:55:40 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2005-10-31 04:55:40 +0000 |
commit | 37f3c5806a6bd8f06216f56000d00c829365e2b7 (patch) | |
tree | 305652bc02d7d4d161a1977e838c8e3da08b0aa6 /regress/lib | |
parent | bc986c93ef6a0136ad040331a7c4c1da8a1dd86c (diff) |
and panic if fork(2) fails.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libpthread/pthread_atfork/pthread_atfork.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/lib/libpthread/pthread_atfork/pthread_atfork.c b/regress/lib/libpthread/pthread_atfork/pthread_atfork.c index ccf69105836..61c8dc7b7f3 100644 --- a/regress/lib/libpthread/pthread_atfork/pthread_atfork.c +++ b/regress/lib/libpthread/pthread_atfork/pthread_atfork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread_atfork.c,v 1.1 2005/10/31 01:01:29 fgsch Exp $ */ +/* $OpenBSD: pthread_atfork.c,v 1.2 2005/10/31 04:55:39 fgsch Exp $ */ /* * Federico Schwindt <fgsch@openbsd.org>, 2005. Public Domain. @@ -63,6 +63,7 @@ forker1(void *arg) cnt = 1; switch (fork()) { case -1: + PANIC("fork"); break; case 0: @@ -87,6 +88,7 @@ forker2(void *arg) cnt = 2; switch (fork()) { case -1: + PANIC("fork"); break; case 0: |