From owner-p4-projects@FreeBSD.ORG Sun Jan 21 22:37:39 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C72EF16A40D; Sun, 21 Jan 2007 22:37:38 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A550216A409 for ; Sun, 21 Jan 2007 22:37:38 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 9478713C45B for ; Sun, 21 Jan 2007 22:37:38 +0000 (UTC) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l0LMbcKH064431 for ; Sun, 21 Jan 2007 22:37:38 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l0LMbcFR064428 for perforce@freebsd.org; Sun, 21 Jan 2007 22:37:38 GMT (envelope-from millert@freebsd.org) Date: Sun, 21 Jan 2007 22:37:38 GMT Message-Id: <200701212237.l0LMbcFR064428@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 113289 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 22:37:39 -0000 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;