]> git.ipfire.org Git - pakfire.git/commitdiff
Try to kill orphans more aggressively when the do not stop within 3 secs.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Oct 2011 16:34:15 +0000 (18:34 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 21 Oct 2011 16:34:15 +0000 (18:34 +0200)
python/pakfire/util.py

index 638b72e3a41bd55ee5e438c3dd5f4b387a53439b..3492253f7c4f75a8b552a96ff7967e5d97a0cee3 100644 (file)
@@ -271,6 +271,9 @@ def orphans_kill(root, killsig=signal.SIGTERM):
                logging.warning(_("Waiting for processes to terminate..."))
                time.sleep(3)
 
+               # Calling ourself again to make sure all processes were killed.
+               orphans_kill(root, killsig=killsig)
+
 def scriptlet_interpreter(scriptlet):
        """
                This function returns the interpreter of a scriptlet.