PERFORCE change 113289 for review

Todd Miller millert at FreeBSD.org
Sun Jan 21 22:42:10 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=113289

Change 113289 by millert at millert_macbook on 2007/01/21 22:37:00

	Deal with waitpid() getting interrupted by a signal.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/launchd/src/IPC.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/launchd/src/IPC.c#2 (text+ko) ====

@@ -68,8 +68,11 @@
 		/* Get the exit status */
 		if (anItem) {
 			aPID = StartupItemGetPID(anItem);
-			if (aPID > 0)
-				rPID = waitpid(aPID, &aStatus, 0);
+			if (aPID > 0) {
+				do {
+					rPID = waitpid(aPID, &aStatus, 0);
+				} while (rPID == -1 && errno == EINTR);
+			}
 		}
 		if (aStartupContext) {
 			--aStartupContext->aRunningCount;


More information about the trustedbsd-cvs mailing list