commit | 9f97f4794027d8143b7d4f2d3ad4f80ca72ca77a | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Wed Sep 06 13:43:57 2017 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Thu Sep 07 10:47:04 2017 -0700 |
tree | d3483bb93fd2fe22fd5b71b0668145ce9571ef29 | |
parent | 6139592321a489607534d9f51533d33908d75ba4 [diff] |
init: Allow clean system shutdown upon SIGTERM This allows Android to cleanly shutdown when running in a PID namespace in a way that does not rely on adbd running. This is useful to allow Android to be running in a container and its lifetime managed by an OCI-compliant tool. Bug: 65415372 Test: `kill -TERM 1` as root is correctly dropped. Test: `kill -TERM 1` from the init PID namespace causes init to cleanly shutdown. Change-Id: Ia66ebdb436221919081bc4723337c0c7f1e53b09