From 02fba0b1e7fb9e72dcb794438942165a036eb985 Mon Sep 17 00:00:00 2001 From: jkh Date: Tue, 28 Jul 1998 11:55:39 +0000 Subject: [PATCH] Don't exit() from cleanup() if we got there via a non-signal since we're only going to exit (after printing a more detailed error message) afterwards anyway. PR: 7020 --- usr.sbin/pkg_install/create/perform.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index f04562e4c110..c86a1285ffd8 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -1,6 +1,6 @@ #ifndef lint static const char rcsid[] = - "$Id: perform.c,v 1.40 1997/11/14 01:56:04 jkh Exp $"; + "$Id: perform.c,v 1.41 1998/02/16 17:16:28 jkh Exp $"; #endif /* @@ -296,5 +296,6 @@ cleanup(int sig) in_cleanup = 1; leave_playpen(); } - exit(1); + if (sig) + exit(1); }