Revision
22908
Author
zarzycki@apple.com
Date
2006-10-20 16:23:59 -0700 (Fri, 20 Oct 2006)

Log Message

<rdar://problem/4795693> launchd-164 breaks LaunchServices-232.1, in that the uncork_fork() stuff doesn't work

Modified Paths

Diff

Modified: trunk/launchd/src/launchd_core_logic.c (22907 => 22908)


--- trunk/launchd/src/launchd_core_logic.c	2006-10-19 22:44:06 UTC (rev 22907)
+++ trunk/launchd/src/launchd_core_logic.c	2006-10-20 23:23:59 UTC (rev 22908)
@@ -3951,6 +3951,11 @@
 		return BOOTSTRAP_NO_MEMORY;
 	}
 
+	if (!job_setup_machport(jr)) {
+		job_remove(jr);
+		return BOOTSTRAP_NO_MEMORY;
+	}
+
 	job_log(j, LOG_INFO, "Spawned with flags:%s%s",
 			flags & SPAWN_WANTS_FORCE_PPC ? " ppc": "",
 			flags & SPAWN_WANTS_WAIT4DEBUGGER ? " stopped": "");