summaryrefslogtreecommitdiff
path: root/usr.bin/pr
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-02 16:25:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-02 16:25:03 +0000
commit2fc661c829a5e13be78e419755695c7f6c4d653b (patch)
treebcff0fcdb97f849683935e55f8bb6633a0105f28 /usr.bin/pr
parent4b04812d48ab55704a52929c162801889cfb7315 (diff)
use _exit() in signal handler
Diffstat (limited to 'usr.bin/pr')
-rw-r--r--usr.bin/pr/pr.c8
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);
}