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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to