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: Jonathan Prescott <email@hidden>
- Date: Fri, 4 Apr 2008 22:30:05 -0400
All processes on MacOSX, and any Unix/Linux operating system are
child processes except for launchd (MacOSX) or init (Unix/Linux). If
you fork and execv a process, then when the parent terminates, the
created process is automatically made a child of launchd.
Jonathan
On Apr 4, 2008, at 12:35 PM, Scott Ribe wrote:
Even if NSTask doesn't have options for this, you can always call
fork
and execv, which is what NSTask uses under the hood.
But that gives you a child process, and there's no way that I found
around
it without ugly hacks involving exec'ing a launchctl script...
--
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:
40comcast.net
This email sent to email@hidden
_______________________________________________
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