summaryrefslogtreecommitdiff
path: root/regress/lib/libc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-11 23:26:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-11 23:26:36 +0000
commit854e32bfa0ac46bd779092588acc3ad83723617f (patch)
treeeb8c4c07328fbf5349c22f59ef1547c27bb5a29c /regress/lib/libc
parent4907cd2837006c10a4de5ff099eea656e5a089b8 (diff)
signal race fixes
Diffstat (limited to 'regress/lib/libc')
-rw-r--r--regress/lib/libc/setjmp/jmptest.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/regress/lib/libc/setjmp/jmptest.c b/regress/lib/libc/setjmp/jmptest.c
index aec1a9e782a..de6e70d9f6a 100644
--- a/regress/lib/libc/setjmp/jmptest.c
+++ b/regress/lib/libc/setjmp/jmptest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jmptest.c,v 1.4 2001/01/29 02:05:45 niklas Exp $ */
+/* $OpenBSD: jmptest.c,v 1.5 2001/11/11 23:26:35 deraadt Exp $ */
/* $NetBSD: jmptest.c,v 1.2 1995/01/01 20:55:35 jtc Exp $ */
/*
@@ -70,9 +70,11 @@ aborthandler(signo)
{
if (expectsignal)
- exit(0);
- else
- errx(1, "kill(SIGABRT) succeeded");
+ _exit(0);
+ else {
+ warnx("kill(SIGABRT) succeeded");
+ _exit(1);
+ }
}
int