diff options
| author | Enji Cooper <ngie@FreeBSD.org> | 2017-01-16 17:25:48 +0000 |
|---|---|---|
| committer | Enji Cooper <ngie@FreeBSD.org> | 2017-01-16 17:25:48 +0000 |
| commit | 03c41ac965df56079c04c1750c684b942e27c59a (patch) | |
| tree | 95238c07f579c78188d230f8759f0d0345b0f6ae /lib/libpthread/t_fork.c | |
| parent | 181439425f0bb490970e4e7022295f139d9988ad (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/t_fork.c')
| -rw-r--r-- | lib/libpthread/t_fork.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/t_fork.c b/lib/libpthread/t_fork.c index ab8806d25641..936c7decaecf 100644 --- a/lib/libpthread/t_fork.c +++ b/lib/libpthread/t_fork.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_fork.c,v 1.1 2010/07/16 15:42:53 jmmv Exp $ */ +/* $NetBSD: t_fork.c,v 1.2 2017/01/16 16:28:27 christos Exp $ */ /* * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -29,7 +29,7 @@ #include <sys/cdefs.h> __COPYRIGHT("@(#) Copyright (c) 2008\ The NetBSD Foundation, inc. All rights reserved."); -__RCSID("$NetBSD: t_fork.c,v 1.1 2010/07/16 15:42:53 jmmv Exp $"); +__RCSID("$NetBSD: t_fork.c,v 1.2 2017/01/16 16:28:27 christos Exp $"); /* * Written by Love Hörnquist Åstrand <lha@NetBSD.org>, March 2003. @@ -61,7 +61,7 @@ print_pid(void *arg) thread_survived = 1; if (parent != getpid()) { - exit(1); + _exit(1); } return NULL; } @@ -95,7 +95,7 @@ ATF_TC_BODY(fork, tc) ATF_REQUIRE_EQ_MSG(WEXITSTATUS(status), 0, "thread survived in child"); } else { sleep(5); - exit(thread_survived ? 1 : 0); + _exit(thread_survived ? 1 : 0); } } |
