commit | 0be5b9e3180478fb12af98a22948e91ee9a29ac1 | [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 | cf7b638c17b8bd82c4f5ef2d12e49f5d06906325 [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