summaryrefslogtreecommitdiff
path: root/init/action_parser.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2018-02-15 14:26:58 -0800
committerTom Cherry <tomcherry@google.com>2018-02-23 11:03:01 -0800
commitc9fec9d2be73a26a4f4b297ee6bee9f9c62cb854 (patch)
treea3140af4d7edd26bed7d1cb97da115ad37e0bd2e /init/action_parser.cpp
parentcdf778f5d92ab8748897a4d95693524d3273c23a (diff)
init: Reboot after timeout passes during reboot
There is currently a timeout for reboot, however if the system gets stuck, particularly during file system operations, there is no safety mechanism that guarantees the system will still reboot. This change does all of the optional reboot steps in a separate thread and waits for this thread with a timeout, such that if the reboot steps get hung, the system is guaranteed to still reboot. This is specific to 'reboot'. Shutdown continues to run unbounded to run fsck. Bug: 72781711 Test: Reboot devices hitting and not hitting this timeout Change-Id: Id5e1b3693bab00602177e28b9b662e1499c32961
Diffstat (limited to 'init/action_parser.cpp')
0 files changed, 0 insertions, 0 deletions