diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-11 23:26:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-11 23:26:36 +0000 |
commit | 854e32bfa0ac46bd779092588acc3ad83723617f (patch) | |
tree | eb8c4c07328fbf5349c22f59ef1547c27bb5a29c /regress/lib/libc | |
parent | 4907cd2837006c10a4de5ff099eea656e5a089b8 (diff) |
signal race fixes
Diffstat (limited to 'regress/lib/libc')
-rw-r--r-- | regress/lib/libc/setjmp/jmptest.c | 10 |
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 |