mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-22 03:42:05 +08:00
manager: check if process is running before sending signal
old-commit-hash: af2a847f06
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