diff options
author | Nikita Ioffe <ioffe@google.com> | 2019-10-09 15:23:02 +0100 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2019-10-10 18:13:42 +0100 |
commit | 3f4b0d611338a772f63669bd12e792bbe43b1245 (patch) | |
tree | d8efb7ccefa34881d7e2ab2021a7702149f5babd /trusty/coverage/coverage.cpp | |
parent | d11c6f7fd8ab1cd747d48b086a008f653b77ca3f (diff) |
userspace reboot: stop post-data services and wait for them to be killed
* Refactored code around stopping services a little bit to reuse it
between full reboot and userspace reboot.
* Add a scope_guard to fallback to full reboot in case userspace reboot
fails.
* In case of userspace reboot init will also wait for services to be
terminated/killed and log the ones that didn't react to
SIGTERM/SIGKILL in time.
* If some of the services didn't react to SIGKILL, fail userspace reboot.
Test: adb reboot userspace
Bug: 135984674
Change-Id: I820c7bc406169333b0f929f0eea028d8384eb2ac
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions