Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pkg_install/delete Replace call to vsystem() with c...



details:   https://anonhg.NetBSD.org/src/rev/ced25ec2112e
branches:  trunk
changeset: 551626:ced25ec2112e
user:      jlam <jlam%NetBSD.org@localhost>
date:      Tue Sep 09 06:43:10 2003 +0000

description:
Replace call to vsystem() with call to fexec() for speed.

diffstat:

 usr.sbin/pkg_install/delete/perform.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 78d04aebd6db -r ced25ec2112e usr.sbin/pkg_install/delete/perform.c
--- a/usr.sbin/pkg_install/delete/perform.c     Tue Sep 09 06:32:14 2003 +0000
+++ b/usr.sbin/pkg_install/delete/perform.c     Tue Sep 09 06:43:10 2003 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: perform.c,v 1.45 2003/09/08 22:11:13 jlam Exp $        */
+/*     $NetBSD: perform.c,v 1.46 2003/09/09 06:43:10 jlam Exp $        */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.45 2003/09/08 22:11:13 jlam Exp $");
+__RCSID("$NetBSD: perform.c,v 1.46 2003/09/09 06:43:10 jlam Exp $");
 #endif
 #endif
 
@@ -828,7 +828,7 @@
                if (is_depoted_pkg) {
                        (void) vsystem("%s %s/+*", REMOVE_CMD, LogDir);
                        if (isemptydir(LogDir))
-                               (void) vsystem("%s %s", RMDIR_CMD, LogDir);
+                               (void) fexec(RMDIR_CMD, LogDir, NULL);
                        else
                                warnx("%s is not empty", LogDir);
                        return 0;



Home | Main Index | Thread Index | Old Index