manager: check if process is running before sending signal

pull/20282/head
Willem Melching 4 years ago
parent 476558b547
commit af2a847f06
  1. 4
      selfdrive/manager/process.py

@ -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

Loading…
Cancel
Save