Re: How to assure NSTask termination when parent dies
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