diff options
| author | Tom Cherry <tomcherry@google.com> | 2017-07-26 16:09:09 -0700 |
|---|---|---|
| committer | Tom Cherry <tomcherry@google.com> | 2017-07-26 16:48:06 -0700 |
| commit | 5938379e910c4cbd7ed2429901bb3c45e62405d4 (patch) | |
| tree | b913447afdcb48c36edbc321090e371cfb0cc91f /trusty/coverage/coverage_test.cpp | |
| parent | 29b94116855b96e24beeb993396b251a1f85127a (diff) | |
init: shutdown services in the opposite order that they started
Currently, the order that we kill to services during shutdown is the
order of services_ in ServiceManager and that is defacto the order in
which they were parsed, which is not a very useful ordering.
Related to this, we have seen a few issues during shutdown that may be
related to services with dependencies on other services, where the
dependency is killed first and the dependent service then misbehaves.
This change allows services to keep track of the order in which they
were started and shutdown then uses that information to kill running
services in the opposite order that they were started.
Bug: 64067984
Test: Boot and reboot bullhead
Change-Id: I6b4cacb03aed2a72ae98a346bce41ed5434a09c2
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
