]> git.llucax.com Git - software/pymin.git/commitdiff
Remove unused ProcessInfo.last_return attribute.
authorLeandro Lucarella <llucax@gmail.com>
Tue, 13 Nov 2007 19:25:45 +0000 (16:25 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Tue, 13 Nov 2007 19:25:45 +0000 (16:25 -0300)
pymin/procman.py

index ab6953a084a885ce9c05c355e553ac997eb63b0c..cb00f4ff54647ef66b621251ab36238aaba5aafc 100644 (file)
@@ -26,7 +26,6 @@ class ProcessInfo:
         self.signal = None
         self.process = None
         self.error_count = 0
         self.signal = None
         self.process = None
         self.error_count = 0
-        self.last_return = None
         self.running = False
     def start(self):
         assert self.process is None
         self.running = False
     def start(self):
         assert self.process is None
@@ -101,6 +100,7 @@ class ProcessManager:
         while pid:
             if pid in self.pidmap:
                 p = self.pidmap[pid]
         while pid:
             if pid in self.pidmap:
                 p = self.pidmap[pid]
+                p.process.returncode = status
                 if p.callback is not None:
                     p.callback(self, p)
                 if p.dont_run or not p.persist or p.error_count >= p.max_errors:
                 if p.callback is not None:
                     p.callback(self, p)
                 if p.dont_run or not p.persist or p.error_count >= p.max_errors: