X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/55139aca1f264af5d972f2f76165a67388f007fa..60b2dd4c3fdb38c4c02f5d182745aec2a020eb69:/pymin/procman.py?ds=sidebyside diff --git a/pymin/procman.py b/pymin/procman.py index ab6953a..cb00f4f 100644 --- a/pymin/procman.py +++ b/pymin/procman.py @@ -26,7 +26,6 @@ class ProcessInfo: 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 @@ -101,6 +100,7 @@ class ProcessManager: 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: