]> git.saurik.com Git - apple/launchd.git/blobdiff - launchd/src/IPC.c
launchd-106.20.tar.gz
[apple/launchd.git] / launchd / src / IPC.c
index 6c8e2aa89811f7fea1deee111fc9910ccaad06ac..ac3a6ce336f2e3114c96ccb64672baa8d2117879 100644 (file)
@@ -122,7 +122,7 @@ MonitorStartupItem(StartupContext aStartupContext, CFMutableDictionaryRef anItem
                aContext.retain = 0;
                aContext.release = 0;
 
-               if ((aResult = task_for_pid(mach_task_self(), aPID, &aPort)) != KERN_SUCCESS)
+               if ((aResult = task_name_for_pid(mach_task_self(), aPID, &aPort)) != KERN_SUCCESS)
                        goto out_bad;
 
                if (!(aMachPort = CFMachPortCreateWithPort(NULL, aPort, NULL, &aContext, NULL)))