[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
Wed Dec 9 05:55:41 UTC 2009
On Wed, 9 Dec 2009, James Antill wrote:
> On Tue, 2009-12-08 at 17:33 -0500, Seth Vidal wrote:
>
>> 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.
>
> I meant do you have any ideas for other "yum code" that will use these
> functions. As they don't relate to yum directly, and aren't used by core
> yum code, so I worry about putting them in yum.misc and thus. having API
> compat. guarantees.
> Also that get_open_files() ignores whether a file is deleted or not,
> which I'm pretty sure we want to trigger on in needs_to_be_restarted.
>
So this is subtly different than what needs_restaring does. This gives
back a list of pkgs which own something which a running process has open.
So you can pre-emptively say:
this process is in use, are you sure you want us to apply the update..
so something like yumex or PK, could tell users "you want to update
firefox and it is running, how about we close it?"
-sv
More information about the Yum-devel
mailing list