PERFORCE change 87593 for review
Todd Miller
millert at FreeBSD.org
Thu Dec 1 19:51:02 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=87593
Change 87593 by millert at millert_ibook on 2005/12/01 19:50:01
mach_init was not handling waitpid returning EINTR,
which caused zombies to pile up over time.
Affected files ...
.. //depot/projects/trustedbsd/sedarwin7/src/darwin/system_cmds/mach_init.tproj/bootstrap.c#5 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin7/src/darwin/system_cmds/mach_init.tproj/bootstrap.c#5 (text+ko) ====
@@ -594,7 +594,9 @@
/*
* Reap our children.
*/
- presult = waitpid(serverp->pid, &wstatus, WNOHANG);
+ do {
+ presult = waitpid(serverp->pid, &wstatus, WNOHANG);
+ } while (presult == -1 && errno == EINTR);
if (presult != serverp->pid) {
unix_error("waitpid: cmd = %s", serverp->cmd);
} else if (wstatus) {
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list