[Yum-devel] [PATCH] Do not flood the screen when we can't show the lock owner. BZ 745281

Zdeněk Pavlas zpavlas at redhat.com
Mon Jun 18 10:03:58 UTC 2012


get_lock_owner() returns a valid locker PID (not a zombie process)
but get_process_info(PID) fails.  This needs more investigation.
At least, make the locker PID readable by not flooding the screen.
---
 yummain.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/yummain.py b/yummain.py
index e3a232b..648cf86 100755
--- a/yummain.py
+++ b/yummain.py
@@ -132,10 +132,8 @@ def main(args):
 
             if not base.conf.exit_on_lock:
                 logger.critical(_("Another app is currently holding the yum lock; waiting for it to exit..."))
-                tm = 0.1
-                if show_lock_owner(e.pid, logger):
-                    tm = 2
-                time.sleep(tm)
+                show_lock_owner(e.pid, logger)
+                time.sleep(2)
             else:
                 logger.critical(_("Another app is currently holding the yum lock; exiting as configured by exit_on_lock"))
                 return 1
-- 
1.7.4.4



More information about the Yum-devel mailing list