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:Non-priv way to collect job stats under Intel?



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to 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.