Wait for any stray processes we might be sent while running as init.

I have cautious hopes that this will fix the package installer zombie
accumulation problem.
This commit is contained in:
Jordan K. Hubbard 1996-10-05 12:28:36 +00:00
parent 3a781673de
commit e783f4c9a8
2 changed files with 10 additions and 2 deletions

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: package.c,v 1.44 1996/08/01 12:35:51 jkh Exp $
* $Id: package.c,v 1.45 1996/08/03 10:11:41 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -180,6 +180,10 @@ package_extract(Device *dev, char *name, Boolean depended)
}
else
msgNotify("Package %s was added successfully", name);
/* Now catch any stragglers */
while (wait4(-1, &tot, WNOHANG, NULL));
sleep(1);
restorescr(w);
sigpipe_caught = FALSE;

View File

@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: package.c,v 1.44 1996/08/01 12:35:51 jkh Exp $
* $Id: package.c,v 1.45 1996/08/03 10:11:41 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@ -180,6 +180,10 @@ package_extract(Device *dev, char *name, Boolean depended)
}
else
msgNotify("Package %s was added successfully", name);
/* Now catch any stragglers */
while (wait4(-1, &tot, WNOHANG, NULL));
sleep(1);
restorescr(w);
sigpipe_caught = FALSE;