• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to create process independent of current process AND that takes command line arguments?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 17:47:57 +1100


On 04/04/2008, at 5:24 PM, Chris Markle wrote:

Chris S.,

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.

Is there anything special I need to specify or any particular terminology for this that I should look for in the doc to get this behavior (running in a different process group)? Thanks!

I don't think the docs. cover this issue. There's no way of controlling the behaviour if that's what you're asking. I think there was a recent post from someone who wanted the opposite behaviour, for a process spawned by NSTask to be terminated when the parent dies, which unfortunately isn't possible.


- 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

  • Follow-Ups:
    • Re: How to create process independent of current process AND that takes command line arguments?
      • From: Jens Alfke <email@hidden>
References: 
 >How to create process independent of current process AND that takes command line arguments? (From: "Chris Markle" <email@hidden>)
 >Re: How to create process independent of current process AND that takes command line arguments? (From: Chris Suter <email@hidden>)
 >Re: How to create process independent of current process AND that takes command line arguments? (From: "Chris Markle" <email@hidden>)

  • Prev by Date: Re: Can we write Mac Servies like We write for Windows services
  • Next by Date: Using WSDL based stubs in the carbon/cocoa application.
  • Previous by thread: Re: How to create process independent of current process AND that takes command line arguments?
  • Next by thread: Re: How to create process independent of current process AND that takes command line arguments?
  • Index(es):
    • Date
    • Thread