Launchd, AbandonProcessGroup, system() vs fork/exec
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Don't know if Darwin-dev is the right place for this question... if not, please point me in the right direction. I have a UNIX program started by launchd when a file system is mounted. In this program I create a second process to carry out some additional task. In my .plist file I have AbandonProcessGroup set to <true/>. Starting the second program this way works fine: system(execution_path.c_str()); But starting the program this way does *not*: child_pid = fork(); if (child_pid == 0) { execl(execution_path.c_str(), execution_path.c_str()); ... } Both approaches work when launching the program from the command line. Why does the AbandonProcessGroup not work in the second version? Todd _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Todd Heberlein