Re: How to create process independent of current process AND that takes command line arguments?
Re: How to create process independent of current process AND that takes command line arguments?
- Subject: Re: How to create process independent of current process AND that takes command line arguments?
- From: Scott Ribe <email@hidden>
- Date: Fri, 04 Apr 2008 23:40:51 -0600
- Thread-topic: How to create process independent of current process AND that takes command line arguments?
> If
> you fork and execv a process, then when the parent terminates, the
> created process is automatically made a child of launchd.
Normally when a parent process terminates, all its children are
automatically terminated. The original question was how to launch a process
from an app such that the process is not a child of the app, but rather a
child of a higher-up process, whether a child of launchd or something
further down the chain like WindowServer was not really part of the
discussion. A corollary of course would be how to launch a child such that
what you describe happens--termination of parent results in child becoming
child of an ancestor further up the chain.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden