Source-Changes-HG archive

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

[src/trunk]: src tools: binstall can use posix_spawn() instead of vfork()



details:   https://anonhg.NetBSD.org/src/rev/9b103fa029b8
branches:  trunk
changeset: 378108:9b103fa029b8
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jul 20 16:21:23 2023 +0000

description:
tools: binstall can use posix_spawn() instead of vfork()

diffstat:

 tools/compat/configure.ac   |  4 ++--
 usr.bin/xinstall/Makefile   |  3 +--
 usr.bin/xinstall/xinstall.c |  5 +++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (61 lines):

diff -r f65327f3eba7 -r 9b103fa029b8 tools/compat/configure.ac
--- a/tools/compat/configure.ac Thu Jul 20 15:20:00 2023 +0000
+++ b/tools/compat/configure.ac Thu Jul 20 16:21:23 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: configure.ac,v 1.106 2023/07/20 15:15:23 lukem Exp $
+#      $NetBSD: configure.ac,v 1.107 2023/07/20 16:21:23 lukem Exp $
 #
 # Autoconf definition file for libnbcompat.
 #
@@ -228,7 +228,7 @@ AC_CHECK_FUNCS(atoll asprintf asnprintf 
        dprintf esetfunc fgetln flock fpurge __fpurge futimes getline \
        getopt getopt_long group_from_gid gid_from_group \
        heapsort isblank issetugid lchflags lchmod lchown lutimes mkstemp \
-       mkdtemp poll pread putc_unlocked pwcache_userdb pwcache_groupdb \
+       mkdtemp poll posix_spawn pread putc_unlocked pwcache_userdb pwcache_groupdb \
        pwrite raise_default_signal random reallocarr reallocarray setenv \
        setgroupent setprogname setpassent \
        snprintb_m snprintf strlcat strlcpy strmode \
diff -r f65327f3eba7 -r 9b103fa029b8 usr.bin/xinstall/Makefile
--- a/usr.bin/xinstall/Makefile Thu Jul 20 15:20:00 2023 +0000
+++ b/usr.bin/xinstall/Makefile Thu Jul 20 16:21:23 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.30 2023/06/03 09:09:19 lukem Exp $
+#      $NetBSD: Makefile,v 1.31 2023/07/20 16:21:23 lukem Exp $
 #      @(#)Makefile    8.1 (Berkeley) 6/6/93
 
 .include <bsd.own.mk>
@@ -11,7 +11,6 @@ MAN=  install.1
 CPPFLAGS+=     -I${NETBSDSRCDIR}/usr.sbin/mtree
 
 .if (${HOSTPROG:U} == "")
-CPPFLAGS+=     -DHAVE_POSIX_SPAWN
 DPADD+= ${LIBUTIL}
 LDADD+= -lutil
 .endif
diff -r f65327f3eba7 -r 9b103fa029b8 usr.bin/xinstall/xinstall.c
--- a/usr.bin/xinstall/xinstall.c       Thu Jul 20 15:20:00 2023 +0000
+++ b/usr.bin/xinstall/xinstall.c       Thu Jul 20 16:21:23 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xinstall.c,v 1.126 2020/10/30 20:05:00 rillig Exp $    */
+/*     $NetBSD: xinstall.c,v 1.127 2023/07/20 16:21:23 lukem Exp $     */
 
 /*
  * Copyright (c) 1987, 1993
@@ -64,6 +64,7 @@
 #include "nbtool_config.h"
 #else
 #define HAVE_FUTIMES 1
+#define HAVE_POSIX_SPAWN 1
 #define HAVE_STRUCT_STAT_ST_FLAGS 1
 #endif
 
@@ -77,7 +78,7 @@
 #if 0
 static char sccsid[] = "@(#)xinstall.c 8.1 (Berkeley) 7/21/93";
 #else
-__RCSID("$NetBSD: xinstall.c,v 1.126 2020/10/30 20:05:00 rillig Exp $");
+__RCSID("$NetBSD: xinstall.c,v 1.127 2023/07/20 16:21:23 lukem Exp $");
 #endif
 #endif /* not lint */
 



Home | Main Index | Thread Index | Old Index