diff options
Diffstat (limited to 'usr.sbin/pkg_install/create/perform.c')
| -rw-r--r-- | usr.sbin/pkg_install/create/perform.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index 21dbaa614a4d..f04562e4c110 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.39 1997/11/13 11:49:23 jkh Exp $"; + "$Id: perform.c,v 1.40 1997/11/14 01:56:04 jkh Exp $"; #endif /* @@ -180,7 +180,7 @@ pkg_perform(char **pkgs) free(Comment); free(Desc); free_plist(&plist); - leave_playpen(home); + leave_playpen(); return TRUE; /* Success */ } @@ -290,6 +290,11 @@ sanity_check() void cleanup(int sig) { - leave_playpen(home); + int in_cleanup = 0; + + if (!in_cleanup) { + in_cleanup = 1; + leave_playpen(); + } exit(1); } |
