manager: check if process is running before sending signal

old-commit-hash: af2a847f0647320c2e741221ca70ebf3657182f3
This commit is contained in:
Willem Melching
2021-03-08 15:42:09 +01:00
parent c993097393
commit d9707bcaac
+4
View File
@@ -107,6 +107,10 @@ class ManagerProcess(ABC):
return ret
def signal(self, sig):
if self.proc is None:
return
# Don't signal if already exited
if self.proc.exitcode is not None and self.proc.pid is not None:
return