From: Leandro Lucarella Date: Sun, 11 Nov 2007 20:00:41 +0000 (-0300) Subject: Bugfix: InitdHandler.timer_handler() had undefined variables. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/7c5adb595e720d430734532b5f3c9a337198a047?ds=sidebyside;hp=6ed640af531e717da24d1dd423ce4f2df0fdec71 Bugfix: InitdHandler.timer_handler() had undefined variables. --- diff --git a/pymin/services/util.py b/pymin/services/util.py index 91d28c3..739b109 100644 --- a/pymin/services/util.py +++ b/pymin/services/util.py @@ -643,10 +643,10 @@ class InitdHandler(ServiceHandler): p = subprocess.Popen(('pgrep', '-f', self._initd_name), stdout=subprocess.PIPE) pid = p.communicate()[0] - if p.wait() == 0 and len(pid) > 0: - c._service_running = True + if p.returncode == 0 and len(pid) > 0: + self._service_running = True else: - c._service_running = False + self._service_running = False class TransactionalHandler(Handler): r"""Handle command transactions providing a commit and rollback commands.