2 Feb
2009
2 Feb
'09
9:32 a.m.
At 22:03 +0100 28/1/09, Xavier Guérin wrote:
Reading launchctl.c I've already been able to do some of the polling code of the agent (even though some data structure are still a complete mystery as I speak), but the load/unload part seems really intricate, and I'm afraid to be obliged to use execve + launchctl to make it work.
Right now the <launch.h> API is only rated for daemons checking in with launchd (ala SampleD). It is not really designed for job management. Rather, we recommend that folks do their job management by fork/exec of launchctl. S+E -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware