• 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: `NSTask' and child processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >`NSTask' and child processes (From: Damien Sorresso <email@hidden>)

  • Prev by Date: [self class] broken for clusters?
  • Next by Date: Function call help
  • Previous by thread: `NSTask' and child processes
  • Next by thread: Playing SWF Movies
  • Index(es):
    • Date
    • Thread