Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2007 22:37:38 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 113289 for review
Message-ID:  <200701212237.l0LMbcFR064428@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113289

Change 113289 by millert@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701212237.l0LMbcFR064428>