Merge "Terminate statsd on a few signals including SIGTERM"

This commit is contained in:
Treehugger Robot
2019-10-14 22:23:12 +00:00
committed by Gerrit Code Review

View File

@@ -53,6 +53,8 @@ void sigHandler(int sig) {
if (gStatsService != nullptr) {
gStatsService->Terminate();
}
ALOGW("statsd terminated on receiving signal %d.", sig);
exit(1);
}
void registerSigHandler()