You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/04/20 15:40:09 UTC
[trafficserver] branch 9.2.x updated: SIGTERM should cause traffic_manager to exit with status 0 as a shutdown method (#8798)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.2.x by this push:
new 62b299310 SIGTERM should cause traffic_manager to exit with status 0 as a shutdown method (#8798)
62b299310 is described below
commit 62b29931052e8aad5a9cc2ee5433ee005cd350bd
Author: Jered Floyd <je...@convivian.com>
AuthorDate: Mon Apr 18 19:34:28 2022 -0400
SIGTERM should cause traffic_manager to exit with status 0 as a shutdown method (#8798)
(cherry picked from commit dfc686aaf04b7302ee8642399b3d1415d4bb04df)
---
src/traffic_manager/traffic_manager.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/traffic_manager/traffic_manager.cc b/src/traffic_manager/traffic_manager.cc
index 4c50fb917..d299a1fd1 100644
--- a/src/traffic_manager/traffic_manager.cc
+++ b/src/traffic_manager/traffic_manager.cc
@@ -978,6 +978,8 @@ SignalHandler(int sig)
case SIGXCPU:
case SIGXFSZ:
abort();
+ case SIGTERM:
+ ::exit(0);
default:
fprintf(stderr, "[TrafficManager] ==> signal #%d\n", sig);
mgmt_log("[TrafficManager] ==> signal #%d\n", sig);