[Yum-devel] [PATCH 2/3] add two functions to get list of processes and return the files the processes have open

Seth Vidal skvidal at fedoraproject.org
Tue Dec 8 22:33:26 UTC 2009



On Tue, 8 Dec 2009, James Antill wrote:

> On Tue, 2009-12-08 at 16:45 -0500, Seth Vidal wrote:
>> ---
>>  yum/misc.py |   30 ++++++++++++++++++++++++++++++
>>  1 files changed, 30 insertions(+), 0 deletions(-)
>>
>> diff --git a/yum/misc.py b/yum/misc.py
>> index 642f9a2..bfebc38 100644
>> --- a/yum/misc.py
>> +++ b/yum/misc.py
>> @@ -873,3 +873,33 @@ def get_my_lang_code():
>>
>>      return mylang
>>
>> +def return_running_pids():
>> +    """return list of running processids, excluding this one"""
>> +def get_open_files(pid):
>> +    """returns files open from this pid"""
>
> Do you have more planned uses?


not _really_ and I hunted around quite a bit, to no avail, to see if there 
was an already existent way of doing this in python.

-sv



More information about the Yum-devel mailing list