• 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: "Hamish Allan" <email@hidden>
  • Date: Fri, 4 Apr 2008 18:08:08 +0100

On Fri, Apr 4, 2008 at 5:35 PM, Scott Ribe <email@hidden> wrote:

>  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...

You want a process that is re-parented to be a child of process 1,
like when you put parentheses round a process to be backgrounded in
bash?

I don't know how this is done, but bash is open source. I very much
doubt that Cocoa provides any mechanism for this, though (NSTask only
really caters for the common case).

Hamish
_______________________________________________

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: Scott Ribe <email@hidden>
References: 
 >Re: How to create process independent of current process AND that takes command line arguments? (From: Jens Alfke <email@hidden>)
 >Re: How to create process independent of current process AND that takes command line arguments? (From: Scott Ribe <email@hidden>)

  • Prev by Date: Feedback-Directed Optimization problem
  • Next by Date: Re: How to create process independent of current process AND that takes command line arguments?
  • 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