Merge "init: report shutdown,container for sigterm of init"
am: d2b5a2417f
Change-Id: Ifb4ab5fa166ee055838c5ad52d69e0d0c07c7e59
This commit is contained in:
commit
387dbf9ab0
2 changed files with 2 additions and 2 deletions
|
|
@ -204,6 +204,7 @@ const std::map<std::string, int32_t> kBootReasonMap = {
|
||||||
{"reboot,shell", 66},
|
{"reboot,shell", 66},
|
||||||
{"reboot,adb", 67},
|
{"reboot,adb", 67},
|
||||||
{"reboot,userrequested", 68},
|
{"reboot,userrequested", 68},
|
||||||
|
{"shutdown,container", 69}, // Host OS asking Android Container to shutdown
|
||||||
};
|
};
|
||||||
|
|
||||||
// Converts a string value representing the reason the system booted to an
|
// Converts a string value representing the reason the system booted to an
|
||||||
|
|
|
||||||
|
|
@ -417,8 +417,7 @@ static void HandleSigtermSignal() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG(INFO) << "Handling SIGTERM, shutting system down";
|
HandlePowerctlMessage("shutdown,container");
|
||||||
HandlePowerctlMessage("shutdown");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void InstallSigtermHandler() {
|
static void InstallSigtermHandler() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue