From 03e7d9c199770b60eeae9385db65525c540c460d Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 26 Jan 2018 16:18:49 +0100 Subject: [PATCH] register handler for SIGTERM and SIGKILL in UE, eNB and EPC --- srsenb/src/main.cc | 4 +++- srsepc/src/main.cc | 2 ++ srsue/src/main.cc | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/srsenb/src/main.cc b/srsenb/src/main.cc index ebe51d102..e2b00fd1f 100644 --- a/srsenb/src/main.cc +++ b/srsenb/src/main.cc @@ -364,7 +364,9 @@ void *input_loop(void *m) int main(int argc, char *argv[]) { - signal(SIGINT, sig_int_handler); + signal(SIGINT, sig_int_handler); + signal(SIGTERM, sig_int_handler); + signal(SIGKILL, sig_int_handler); all_args_t args; metrics_stdout metrics; enb *enb = enb::get_instance(); diff --git a/srsepc/src/main.cc b/srsepc/src/main.cc index f70473505..1ca14ad1d 100644 --- a/srsepc/src/main.cc +++ b/srsepc/src/main.cc @@ -259,6 +259,8 @@ main (int argc,char * argv[] ) { cout << endl <<"--- Software Radio Systems EPC ---" << endl << endl; signal(SIGINT, sig_int_handler); + signal(SIGTERM, sig_int_handler); + signal(SIGKILL, sig_int_handler); all_args_t args; parse_args(&args, argc, argv); diff --git a/srsue/src/main.cc b/srsue/src/main.cc index 3978a7884..84748748b 100644 --- a/srsue/src/main.cc +++ b/srsue/src/main.cc @@ -425,6 +425,8 @@ int main(int argc, char *argv[]) { srslte::metrics_hub metricshub; signal(SIGINT, sig_int_handler); + signal(SIGTERM, sig_int_handler); + signal(SIGKILL, sig_int_handler); all_args_t args; srslte_debug_handle_crash(argc, argv);