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: Chris Suter <email@hidden>
- Date: Fri, 4 Apr 2008 15:59:45 +1100
On 04/04/2008, at 3:50 PM, Chris Markle wrote:
Preferably using Cocoa stuff, how can I create a separate process that
is independent of my current process (that is I don't want the process
to be a child of my current process) AND that can take command line
arguments. I looked at NSTask and NSWorkspace classes and they don't
look like they can handle this. I am new to the platform so I easily
could have missed something. Thanks in advance!
Why do you not want it to be a child? The reason I ask is that if your
requirement is that the spawned process isn't terminated when the
parent dies, then NSTask will suffice. Whilst processes it spawns are
children, they're in a different process group and session and so
don't die when the parent dies.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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