[Yum-devel] [PATCH 2/3] Really fix the race for lock owner exiting, BZ 588002.
seth vidal
skvidal at fedoraproject.org
Tue Aug 17 14:12:11 UTC 2010
On Mon, 2010-08-16 at 17:44 -0400, James Antill wrote:
> From: Mads Kiilerich <mads at kiilerich.com>
>
ACK
> ---
> utils.py | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/utils.py b/utils.py
> index 9335112..868e5cc 100644
> --- a/utils.py
> +++ b/utils.py
> @@ -101,12 +101,12 @@ def get_process_info(pid):
> return ps
>
> def show_lock_owner(pid, logger):
> - if not pid:
> + ps = get_process_info(pid)
> + if not ps:
> return
>
> - ps = get_process_info(pid)
> # This yumBackend isn't very friendly, so...
> - if ps is not None and ps['name'] == 'yumBackend.py':
> + if ps['name'] == 'yumBackend.py':
> nmsg = _(" The other application is: PackageKit")
> else:
> nmsg = _(" The other application is: %s") % ps['name']
More information about the Yum-devel
mailing list