|
|
@ -371,11 +371,8 @@ def kill_managed_process(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) |
|
|
|
cloudlog.critical("unkillable process %s failed to die!" % name) |
|
|
|
# TODO: Use method from HARDWARE |
|
|
|
os.system("date >> /sdcard/unkillable_reboot") |
|
|
|
if ANDROID: |
|
|
|
HARDWARE.reboot() |
|
|
|
cloudlog.critical("FORCE REBOOTING PHONE!") |
|
|
|
|
|
|
|
os.system("date >> /sdcard/unkillable_reboot") |
|
|
|
|
|
|
|
os.system("reboot") |
|
|
|
|
|
|
|
raise RuntimeError |
|
|
|
raise RuntimeError |
|
|
|
else: |
|
|
|
else: |
|
|
|
cloudlog.info("killing %s with SIGKILL" % name) |
|
|
|
cloudlog.info("killing %s with SIGKILL" % name) |
|
|
|