Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving process information without using ps



Terry Lambert wrote:
> (1) fork
> 
> (2) obtain the task port in the child, prior to execve (the child has
> self rights)
> 
> (3) send the port from the child to the parent process (the parent can
> then use the port)

How does this part work? I can't figure out how to get a communication 
channel from the child to the parent that can transfer a port right.


> (4) execve normally (whatever you execve doesn't have to know about
> the port)
> 
> (5) use the port in the parent process to call task_info() for the task


-- 
Greg Parker     email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden

References: 
 >Re: Retrieving process information without using ps (From: Terry Lambert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.