diff --git a/usr.sbin/pkg_install/create/perform.c b/usr.sbin/pkg_install/create/perform.c index c45ace59d9f9..9033e6a74f95 100644 --- a/usr.sbin/pkg_install/create/perform.c +++ b/usr.sbin/pkg_install/create/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.41 2005/11/05 13:11:02 wiz Exp $ */ +/* $NetBSD: perform.c,v 1.42 2005/11/07 22:57:07 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.41 2005/11/05 13:11:02 wiz Exp $"); +__RCSID("$NetBSD: perform.c,v 1.42 2005/11/07 22:57:07 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);