Re:Non-priv way to collect job stats under Intel?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 8/1/06 at 12:03 PM, darwin-dev-request@lists.apple.com wrote:
On Aug 1, 2006, at 10:20 AM, Erik Paulson wrote:
It's unfortunate that progrms like Jeffrey's and mine that previously did not need any root privileges or setuid helpers now need them, especially just to do something like find out the status of a process that our programs spawned - even though we can still kill them, suspend them, and find out their exit status.
Assuming that you're willing to accept the stipulation that you can only look at your own processes, what sorts of information about said processes would you expect/want such an API to provide? To put it another way, if you could have your idea "process inspection API", what would might it look like?
Ideally, given a pid, I'd like an API returning the following ps values in a struct: %cpu %mem command lim lstart nice ppid pri sl state time uid xstat To solve my immediate problem, I'd settle for lstart state time xstat Even removing the long-standing getrusage() "bug"/limitation so I could use it to get ru_utime and ru_stime on running child processes would help :-) Thanks Jeffrey Johnson Macintosh Development Wavefunction, Inc. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jeffrey Johnson