Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libpthread PR/51886: Ngie Cooper: Use _exit instea...
details: https://anonhg.NetBSD.org/src/rev/f9073ee09590
branches: trunk
changeset: 820946:f9073ee09590
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 16 16:28:27 2017 +0000
description:
PR/51886: Ngie Cooper: Use _exit instead of exit
diffstat:
tests/lib/libpthread/t_fork.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r d0afd55790ae -r f9073ee09590 tests/lib/libpthread/t_fork.c
--- a/tests/lib/libpthread/t_fork.c Mon Jan 16 16:27:43 2017 +0000
+++ b/tests/lib/libpthread/t_fork.c Mon Jan 16 16:28:27 2017 +0000
@@ -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@localhost>, March 2003.
@@ -61,7 +61,7 @@
thread_survived = 1;
if (parent != getpid()) {
- exit(1);
+ _exit(1);
}
return NULL;
}
@@ -95,7 +95,7 @@
ATF_REQUIRE_EQ_MSG(WEXITSTATUS(status), 0, "thread survived in child");
} else {
sleep(5);
- exit(thread_survived ? 1 : 0);
+ _exit(thread_survived ? 1 : 0);
}
}
Home |
Main Index |
Thread Index |
Old Index