aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stp/stp_main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stp/stp_main.c b/stp/stp_main.c
index 8e3282c..a33045a 100644
--- a/stp/stp_main.c
+++ b/stp/stp_main.c
@@ -134,8 +134,11 @@ static void signal_handler(int signal)
switch (signal) {
case SIGINT:
case SIGTERM:
+ /* FIXME: handle the signal somewhere else and gracefully shut down
+ * SIGTRAN links
osmo_signal_dispatch(SS_L_GLOBAL, S_L_GLOBAL_SHUTDOWN, NULL);
- sleep(1);
+ sleep(1); */
+ exit(0);
break;
case SIGABRT:
osmo_generate_backtrace();