Modified: trunk/launchd/src/launchd_core_logic.c (22871 => 22872)
--- trunk/launchd/src/launchd_core_logic.c 2006-09-23 17:43:34 UTC (rev 22871)
+++ trunk/launchd/src/launchd_core_logic.c 2006-09-23 20:00:16 UTC (rev 22872)
@@ -2843,7 +2843,7 @@
ms->isActive = true;
- if (ms->job->req_port == MACH_PORT_NULL) {
+ if (ms->recv) {
which = MACH_NOTIFY_PORT_DESTROYED;
job_checkin(ms->job);
}
Modified: trunk/launchd/src/launchd_mach_ipc.c (22871 => 22872)
--- trunk/launchd/src/launchd_mach_ipc.c 2006-09-23 17:43:34 UTC (rev 22871)
+++ trunk/launchd/src/launchd_mach_ipc.c 2006-09-23 20:00:16 UTC (rev 22872)
@@ -269,7 +269,7 @@
}
if (serviceport != MACH_PORT_NULL) {
- if ((ms = machservice_new(job_get_bs(j), servicename, &serviceport))) {
+ if ((ms = machservice_new(j, servicename, &serviceport))) {
machservice_watch(ms);
} else {
return BOOTSTRAP_NO_MEMORY;