fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmocom-bb/+/29847 )
Change subject: trxcon: grecefully exit on receipt of SIGTERM
......................................................................
trxcon: grecefully exit on receipt of SIGTERM
Change-Id: Id33e598b5c7a7a474a383f815cdbda65b29d25a0
---
M src/host/trxcon/src/trxcon.c
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/47/29847/1
diff --git a/src/host/trxcon/src/trxcon.c b/src/host/trxcon/src/trxcon.c
index 7e12e3b..605dddd 100644
--- a/src/host/trxcon/src/trxcon.c
+++ b/src/host/trxcon/src/trxcon.c
@@ -429,6 +429,7 @@
switch (signum) {
case SIGINT:
+ case SIGTERM:
app_data.quit++;
break;
case SIGABRT:
@@ -469,6 +470,7 @@
/* Setup signal handlers */
signal(SIGINT, &signal_handler);
+ signal(SIGTERM, &signal_handler);
signal(SIGABRT, &signal_handler);
signal(SIGUSR1, &signal_handler);
signal(SIGUSR2, &signal_handler);
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/29847
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Id33e598b5c7a7a474a383f815cdbda65b29d25a0
Gerrit-Change-Number: 29847
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange