From 2fc661c829a5e13be78e419755695c7f6c4d653b Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 2 Nov 2001 16:25:03 +0000 Subject: use _exit() in signal handler --- usr.bin/pr/pr.c | 8 ++++---- 1 file 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 @@ -1701,8 +1701,8 @@ void terminate(which_sig) int which_sig; { - flsh_errs(); - exit(1); + flsh_errs(); /* XXX signal race */ + _exit(1); } -- cgit v1.2.3