• 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: kqueue EVFILT_PROC and child process pid
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kqueue EVFILT_PROC and child process pid


  • Subject: Re: kqueue EVFILT_PROC and child process pid
  • From: Stacey Son <email@hidden>
  • Date: Sun, 11 Oct 2009 18:01:24 -0500


On Oct 11, 2009, at 3:01 PM, Dave Keck wrote:

As far as getting the the new child's PID, I don't think it's possible
using the kevent APIs from userland. (sys/event.h mentions "lower bits
contain the PID of the child", but I think this is kernel-only.)

FWIW:

This depends on which version of Mac OS you are using... Before 10.5 I believe you could use NOTE_TRACK and NOTE_CHILD to get the PID of the child. The PID of the child would be stored in the ident field and the PID of the parent (aka. PPID) would be stored in the data field. I guess this is no longer the case. See sys/event.h:

/*
* DEPRECATED!!!!!!!!!
* NOTE_TRACK, NOTE_TRACKERR, and NOTE_CHILD are no longer supported as of 10.5
*/


Best Regards,

-stacey.


_______________________________________________ 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
  • Follow-Ups:
    • Re: kqueue EVFILT_PROC and child process pid
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Re: kqueue EVFILT_PROC and child process pid (From: Ryan McGann <email@hidden>)
 >Re: kqueue EVFILT_PROC and child process pid (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: kqueue EVFILT_PROC and child process pid
  • Next by Date: Re: kqueue EVFILT_PROC and child process pid
  • Previous by thread: Re: kqueue EVFILT_PROC and child process pid
  • Next by thread: Re: kqueue EVFILT_PROC and child process pid
  • Index(es):
    • Date
    • Thread