diff options
Diffstat (limited to 'regress/sys')
-rw-r--r-- | regress/sys/arch/i386/ldt/testldt.c | 4 | ||||
-rw-r--r-- | regress/sys/kern/unfdpass/unfdpass.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/regress/sys/arch/i386/ldt/testldt.c b/regress/sys/arch/i386/ldt/testldt.c index ec33335f430..60fea3cc943 100644 --- a/regress/sys/arch/i386/ldt/testldt.c +++ b/regress/sys/arch/i386/ldt/testldt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: testldt.c,v 1.4 2001/05/11 15:51:59 art Exp $ */ +/* $OpenBSD: testldt.c,v 1.5 2001/11/11 23:26:35 deraadt Exp $ */ /* $NetBSD: testldt.c,v 1.4 1995/04/20 22:42:38 cgd Exp $ */ #include <stdio.h> @@ -137,7 +137,7 @@ print_ldt(union descriptor *dp) static void busfault(int signal, int code, struct sigcontext *sc) { fprintf(stderr, "\nbus fault - investigate.\n"); - exit(1); + _exit(1); } static void usage(int status) diff --git a/regress/sys/kern/unfdpass/unfdpass.c b/regress/sys/kern/unfdpass/unfdpass.c index fe518c3f3ad..fac10349be9 100644 --- a/regress/sys/kern/unfdpass/unfdpass.c +++ b/regress/sys/kern/unfdpass/unfdpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: unfdpass.c,v 1.2 2001/01/29 02:05:57 niklas Exp $ */ +/* $OpenBSD: unfdpass.c,v 1.3 2001/11/11 23:26:35 deraadt Exp $ */ /* $NetBSD: unfdpass.c,v 1.3 1998/06/24 23:51:30 thorpej Exp $ */ /*- @@ -240,9 +240,11 @@ void catch_sigchld(sig) int sig; { + int save_errno = errno; int status; (void) wait(&status); + errno = save_errno; } void |