diff --git a/recipes/recipe_modules/bot_update/resources/bot_update.py b/recipes/recipe_modules/bot_update/resources/bot_update.py index 4561c67c3b..eae8f41c0d 100755 --- a/recipes/recipe_modules/bot_update/resources/bot_update.py +++ b/recipes/recipe_modules/bot_update/resources/bot_update.py @@ -117,11 +117,16 @@ class PsPrinter(object): self.active = sys.platform.startswith('linux2') self.thread = None - @staticmethod def print_pstree(): """Debugging function used to print "ps auxwwf" for stuck processes.""" + # Add new line for cleaner output + print() subprocess.call(['ps', 'auxwwf']) + # Restart timer, we want to continue printing until the process is + # terminated. + self.poke() + def poke(self): if self.active: self.cancel()