From: Leandro Lucarella Date: Mon, 19 May 2008 02:20:24 +0000 (-0300) Subject: Mark procman.ProcessInfo.signal as private. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/2f404454931e0df0ba0d6e929c6ffedc6c7e6006 Mark procman.ProcessInfo.signal as private. --- diff --git a/pymin/procman.py b/pymin/procman.py index eb11a27..115f3b4 100644 --- a/pymin/procman.py +++ b/pymin/procman.py @@ -24,7 +24,7 @@ class ProcessInfo: self.clear() def clear(self): self._dont_run = False - self.signal = None + self._signal = None self.process = None self.error_count = 0 def start(self): @@ -37,7 +37,7 @@ class ProcessInfo: def stop(self): assert self.process is not None self._dont_run = True - if self.signal == signal.SIGTERM or self.signal == signal.SIGKILL: + if self._signal == signal.SIGTERM or self._signal == signal.SIGKILL: # Allready stopped, kill it self.kill(signal.SIGKILL) else: @@ -48,7 +48,7 @@ class ProcessInfo: self.process.pid, signum) assert self.process is not None os.kill(self.process.pid, signum) - self.signal = signum + self._signal = signum @property def running(self): return self.process is not None and self.process.poll() is None