Date: Thu, 1 Dec 2005 19:51:02 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 87593 for review Message-ID: <200512011951.jB1Jp2PH072025@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=87593 Change 87593 by millert@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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512011951.jB1Jp2PH072025>