• 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 assure NSTask termination when parent dies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to assure NSTask termination when parent dies


  • Subject: Re: How to assure NSTask termination when parent dies
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 13 Aug 2010 21:26:11 +0100

On 13 Aug 2010, at 19:29, Michael Ash wrote:
>
> I'm not sure why your setpgid doesn't work. You might try a more
> UNIX-oriented mailing list, such as darwin-dev.
>
> There are a couple of other things you could try.
>
> If your subprocess reads from standard input and exits on EOF, set its
> standard input to a pipe. When your process exits, it will close its
> end of the pipe. That will cause an EOF to be generated on the other
> side, and it will exit.
>
> If your subprocess regularly writes to standard output, set its
> standard output to a pipe. When your process exits, it will close its
> end, which causes a SIGPIPE to be generated on the other side the next
> time it tries to write to it. SIGPIPE kills the process by default.
>

Thanks for the suggestions Mike.
I have the tasks piped up already but I am still able to get unruly child processes.
I will take a close look at just how the pipes are being utilised.

Regards

Jonathan_______________________________________________

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

References: 
 >How to assure NSTask termination when parent dies (From: "email@hidden" <email@hidden>)
 >Re: How to assure NSTask termination when parent dies (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: Storing objects in NSMutableDictionary
  • Next by Date: SMTP Framework for Cocoa
  • Previous by thread: Re: How to assure NSTask termination when parent dies
  • Next by thread: Re: How to assure NSTask termination when parent dies
  • Index(es):
    • Date
    • Thread