summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorwiz <wiz>2005-11-07 22:57:48 +0000
committerwiz <wiz>2005-11-07 22:57:48 +0000
commitb15faf2c2d3190cdb4ba3ddb835c9596317606c3 (patch)
treeeab86699c4d3b20490d84c10f2866eef2338d1e9 /pkgtools
parenta4564a5cf35e99fccfb4773da45141b6a88d54ca (diff)
downloadpkgsrc-b15faf2c2d3190cdb4ba3ddb835c9596317606c3.tar.gz
Sync with basesrc:
Replace wait(2) with equivalent waitpid(2); for Linux, reported by wulf@ on tech-pkg.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/create/perform.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/create/perform.c b/pkgtools/pkg_install/files/create/perform.c
index 37eab1a4141..5b6ceb56dfa 100644
--- a/pkgtools/pkg_install/files/create/perform.c
+++ b/pkgtools/pkg_install/files/create/perform.c
@@ -1,4 +1,4 @@
-/* $NetBSD: perform.c,v 1.8 2004/12/29 12:16:56 agc Exp $ */
+/* $NetBSD: perform.c,v 1.9 2005/11/07 22:57:48 wiz Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.8 2004/12/29 12:16:56 agc Exp $");
+__RCSID("$NetBSD: perform.c,v 1.9 2005/11/07 22:57:48 wiz Exp $");
#endif
#endif
@@ -174,7 +174,7 @@ make_dist(const char *home, const char *pkg, const char *suffix, const package_t
}
fclose(totar);
- wait(&ret);
+ waitpid(-1, &ret, 0);
/* assume either signal or bad exit is enough for us */
if (ret) {
cleanup(0);