mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
manager: check if process is running before sending signal
old-commit-hash: af2a847f0647320c2e741221ca70ebf3657182f3
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user