Merge "Terminate statsd on a few signals including SIGTERM" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
16854f5e22
@@ -53,6 +53,8 @@ void sigHandler(int sig) {
|
|||||||
if (gStatsService != nullptr) {
|
if (gStatsService != nullptr) {
|
||||||
gStatsService->Terminate();
|
gStatsService->Terminate();
|
||||||
}
|
}
|
||||||
|
ALOGW("statsd terminated on receiving signal %d.", sig);
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void registerSigHandler()
|
void registerSigHandler()
|
||||||
|
|||||||
Reference in New Issue
Block a user