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: Alternative "dead port listener" implementations under intel?




On Feb 15, 2006, at 2:39 PM, Jeffrey Johnson wrote:

Hello,

Now that the use of task_for_pid() on intel boxes has been tightened to use by root or processes belonging to procmod:
<http://developer.apple.com/documentation/MacOSX/Conceptual/ universal_binary/index.html#//apple_ref/doc/uid/TP40002217>


those of us relying on the helpful snippet in TN2050 have been chopped off at the knees. Does anyone have a workaround for getting notified when a process terminates without resorting to polling? (I only care about processes owned by my UID.)


In addition to the kqueue suggestion (which is better for this situation, probably), there are bootstrap namespaces. OmniObjectMeter, for example, needs to be able to scrounge though the target process's memory. We do this by setting up a private bootstrap namespace and then having the target process register its task port there-in under a well-known name.

-tim

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

This email sent to email@hidden
References: 
 >Alternative "dead port listener" implementations under intel? (From: Jeffrey Johnson <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.