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

James Antill james.antill at redhat.com
Tue Dec 8 21:57:35 UTC 2009


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?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20091208/e9151ede/attachment.pgp>


More information about the Yum-devel mailing list