Identifying an XPC "parent" process
Identifying an XPC "parent" process
- Subject: Identifying an XPC "parent" process
- From: Andrew Keller <email@hidden>
- Date: Mon, 02 Mar 2015 11:21:33 -0500
Hello all,
I’m not sure if this is the correct list, but I figure I’ll start somewhere.
I’m writing a program that collects activity statistics on other running programs (in particular, network usage statistics). At the moment, I’m working on the user interface. I’d like to display processes with a helpful human-understandable process name. For example, instead of “Safari Web Content”, I want “Safari”. One could imagine some heuristics that could massage the names into what I want, but I want something less fragile. Activity Monitor clearly knows this information, so the knowledge must exist somewhere.
Long story short, I’m having trouble identifying the process that initiated an XPC service. Since XPC is governed by launchd, I figure it wouldn’t hurt to ask here. Does XPC have any touch points in the kernel? Might the kernel know this information?
See also: http://stackoverflow.com/questions/24260518/how-does-osx-activity-monitor-match-xpc-tasks-to-their-initiator-process
Thanks,
- Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden