Re:Non-priv way to collect job stats under Intel?
Re:Non-priv way to collect job stats under Intel?
- Subject: Re:Non-priv way to collect job stats under Intel?
- From: Jeffrey Johnson <email@hidden>
- Date: Tue, 1 Aug 2006 15:44:27 -0400
On 8/1/06 at 12:03 PM, email@hidden 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden