[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-devel] [Condor-status] Pete's Week
- Date: Fri, 31 Aug 2007 09:59:09 -0500
- From: Erik Paulson <epaulson@xxxxxxxxxxx>
- Subject: Re: [Condor-devel] [Condor-status] Pete's Week
On Thu, Aug 30, 2007 at 10:20:46PM -0500, Peter Keller wrote:
> Hello,
>
> + Checked in enough fixes to the macosx port on the 6.8 branch so VDT
> can use it as a submission point.
>
1. Why did you include my_popen.h? You don't use it in your patch.
2. Remember, if the user condor is in the right group, or if the kernel
setting has been changed, task_for_pid is available to non-root users.
You've hard-coded it so it will never work for non-root users, though.
if (is_root()) {
// figure out the image,rss size and the sys/usr time for the process.
task_for_pid();
else {
//make up numbers
}
That should be something like
bool use_task_for_pid = param_bool("USE_TASK_FOR_PID", false)
if(is_root() || use_task_for_pid) {
}
That way, people can configure their mac so non-root Condors can still get all
of the information.
-Erik