Question on using launchd from a C program