From dec386119736b86dc3e326e90087a72d133b964c Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 9 Jun 2020 17:38:42 -0700 Subject: [PATCH] don't reboot on PC old-commit-hash: dc68b4defd0e9a100e117504c869f18f1c881105 --- selfdrive/manager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/selfdrive/manager.py b/selfdrive/manager.py index ed8b6a9f28..fcf75ff1c9 100755 --- a/selfdrive/manager.py +++ b/selfdrive/manager.py @@ -359,9 +359,11 @@ def kill_managed_process(name): cloudlog.critical("unkillable process %s failed to exit! rebooting in 15 if it doesn't die" % name) join_process(running[name], 15) if running[name].exitcode is None: - cloudlog.critical("FORCE REBOOTING PHONE!") - os.system("date >> /sdcard/unkillable_reboot") - os.system("reboot") + cloudlog.critical("unkillable process %s failed to die!" % name) + if ANDROID: + cloudlog.critical("FORCE REBOOTING PHONE!") + os.system("date >> /sdcard/unkillable_reboot") + os.system("reboot") raise RuntimeError else: cloudlog.info("killing %s with SIGKILL" % name)