• 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: waitid() function replacement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: waitid() function replacement


  • Subject: Re: waitid() function replacement
  • From: Jim Magee <email@hidden>
  • Date: Thu, 13 Apr 2006 21:15:11 -0400


On Apr 6, 2006, at 1:45 PM, Kevin Harris wrote:
To further clarify, what I need to be able to do is find out if the processes my program spawns has terminated (without cleaning them up). After I know the process is done, I need to signal the rest of the process group to clear out any processes it may have spawned (that haven't changed to a new process group). I can't use waitpid () to find out if the process has quit and then signal the process group.

[what I think you omitted]... because once you do the the waitpid() to detect the process is gone, the process group tied to that pid is [potentially] gone and, even worse, potentially recycled. Is that your concern?


If so, you can use kevent(2) to get notified of the process termination, send your process group signal, and then reap the child.

--Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >waitid() function replacement (From: "Kevin Harris" <email@hidden>)
 >Re: waitid() function replacement (From: Eric Gouriou <email@hidden>)
 >Re: waitid() function replacement (From: "Kevin Harris" <email@hidden>)

  • Prev by Date: Fwd: kqueue issues
  • Next by Date: Problems building universal binaries using -isysroot
  • Previous by thread: Re: waitid() function replacement
  • Next by thread: Running AIX executables on Intel based Macs
  • Index(es):
    • Date
    • Thread