diff options
| author | 2019-10-14 15:37:24 -0700 | |
|---|---|---|
| committer | 2019-10-14 15:37:24 -0700 | |
| commit | 41128933e4ebaadffd14b34cd7dbd8e698d7b651 (patch) | |
| tree | 54acecdeef3011ae841af74e2fbe330c9a80271c | |
| parent | 10c69833672e22538890222dbd5dd3cc62e9de95 (diff) | |
| parent | 99f231f3bce4209e685c21e56c017fce1a8d3f6a (diff) | |
Merge "Terminate statsd on a few signals including SIGTERM"
am: 99f231f3bc
Change-Id: I4a1f39eac54da861d88337a15e0c8e7a764a66f3
| -rw-r--r-- | cmds/statsd/src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/statsd/src/main.cpp b/cmds/statsd/src/main.cpp index 68082c2dc4d2..e04e7071052d 100644 --- a/cmds/statsd/src/main.cpp +++ b/cmds/statsd/src/main.cpp @@ -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() |