Re: Launchd, AbandonProcessGroup, system() vs fork/exec
Re: Launchd, AbandonProcessGroup, system() vs fork/exec
- Subject: Re: Launchd, AbandonProcessGroup, system() vs fork/exec
- From: Jason Coco <email@hidden>
- Date: Wed, 02 Nov 2011 14:57:43 -0400
I believe it's designed to allow short-lived processes to complete whatever service they're providing if the parent dies unexpectedly, not for when the parent exits and basically says "okay, I'm all done," like in your case. An example might be an http daemon that uses processes to service individual requests. If the daemon process dies, the child processes are given a chance to complete their service and exit before being killed and reaped by launchd.
--
Jason Coco
iOS Applications
627 Broadway, 9th Floor
New York, NY 10012
On Wednesday, November 2, 2011 at 14:19 , Todd Heberlein wrote:
I guess my confusion is the purpose/use of
<key>AbandonProcessGroup</key>
<true/>
Isn't this supposed to address this issue? That is, let the child processes live on after the parent process has exited?
Todd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden