Re: `NSTask' and child processes
Re: `NSTask' and child processes
- Subject: Re: `NSTask' and child processes
- From: Tom Harrington <email@hidden>
- Date: Thu, 15 Sep 2005 21:59:14 -0600
On 9/15/05, Damien Sorresso <email@hidden> wrote:
> I'm using `NSTask' to spawn a process instance, but I'd also like to
> be notified when that task spawns a child process. Is there any way
> to query a `NSTask' for its associated child processes? (Or maybe to
> get the (grand)*children of the current app, since `NSTask' just
> forks the current process.)
When I wanted to do this, the only way I found was to head directly to
Unix system calls. Using sysctl(3) you can get this information, and
even build up a tree of all descendant processes from the NSTask (in
the event that it goes beyond grandchild processes, for example). But
I don't think there's any Cocoa methods that'll get you this
information.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden