don't reboot on PC

pull/1673/head
Adeeb Shihadeh 5 years ago
parent fac0231471
commit dc68b4defd
  1. 2
      selfdrive/manager.py

@ -359,6 +359,8 @@ def kill_managed_process(name):
cloudlog.critical("unkillable process %s failed to exit! rebooting in 15 if it doesn't die" % name) cloudlog.critical("unkillable process %s failed to exit! rebooting in 15 if it doesn't die" % name)
join_process(running[name], 15) join_process(running[name], 15)
if running[name].exitcode is None: if running[name].exitcode is None:
cloudlog.critical("unkillable process %s failed to die!" % name)
if ANDROID:
cloudlog.critical("FORCE REBOOTING PHONE!") cloudlog.critical("FORCE REBOOTING PHONE!")
os.system("date >> /sdcard/unkillable_reboot") os.system("date >> /sdcard/unkillable_reboot")
os.system("reboot") os.system("reboot")

Loading…
Cancel
Save