diff options
author | 2001-11-02 16:25:02 +0000 | |
---|---|---|
committer | 2001-11-02 16:25:02 +0000 | |
commit | ed467585113721c108bf79a4aaded0a09282745f (patch) | |
tree | ed1d53109c35022dcfa4ac43454c1c40f706884b | |
parent | _exit() in signal handler (diff) | |
download | wireguard-openbsd-ed467585113721c108bf79a4aaded0a09282745f.tar.xz wireguard-openbsd-ed467585113721c108bf79a4aaded0a09282745f.zip |
use _exit() in signal handler
-rw-r--r-- | usr.bin/pr/pr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/pr/pr.c b/usr.bin/pr/pr.c index 47bda2d0f83..edb70c9d539 100644 --- a/usr.bin/pr/pr.c +++ b/usr.bin/pr/pr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pr.c,v 1.10 2001/05/24 02:58:50 pvalchev Exp $ */ +/* $OpenBSD: pr.c,v 1.11 2001/11/02 16:25:02 deraadt Exp $ */ /*- * Copyright (c) 1991 Keith Muller. @@ -45,7 +45,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)pr.c 8.1 (Berkeley) 6/6/93"; */ -static char *rcsid = "$OpenBSD: pr.c,v 1.10 2001/05/24 02:58:50 pvalchev Exp $"; +static char *rcsid = "$OpenBSD: pr.c,v 1.11 2001/11/02 16:25:02 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -1701,8 +1701,8 @@ void terminate(which_sig) int which_sig; { - flsh_errs(); - exit(1); + flsh_errs(); /* XXX signal race */ + _exit(1); } |