diff options
author | Tom Cherry <tomcherry@google.com> | 2019-10-11 13:18:44 -0700 |
---|---|---|
committer | Tom Cherry <tomcherry@google.com> | 2019-10-11 13:45:42 -0700 |
commit | 0dbfea7b0778bff25a43602e523deae5bb65b114 (patch) | |
tree | 108d52a6da321b7bec78f8c7acec47343b0c4de8 /init/interface_utils.cpp | |
parent | 6b0e789a21cfb796a508e3c5507e49a2e8571582 (diff) |
init: trigger shutdown directly from builtins
Especially now that property_service is a thread, there may be some
delay between when init sets sys.powerctl and when the main thread of
init receives this and triggers shutdown. It's possible that
outstanding init commands are run during this gap and that is not
desirable.
Instead, have builtins call TriggerShutdown() directly, so we can be
sure that the next action that init runs will be to shutdown the
device.
Test: reboot works
Test: reboot into recovery due to bad /data works
Change-Id: I26fb9f4f57f46c7451b8b58187138cfedd6fd9eb
Diffstat (limited to 'init/interface_utils.cpp')
0 files changed, 0 insertions, 0 deletions