From 64de92183b3228c0526b3a8cf4d37606dcb5005e Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 5 Feb 2020 17:01:11 +0100 Subject: [PATCH] epc: Drop signal(SIGKILL) calls SIGKILL cannot be intercepted by apps, so it's useless adding a signal handler for them. I'm pretty sure the signal() function is erroring in this scenarios. From signal() man page: "The signals SIGKILL and SIGSTOP cannot be caught or ignored." --- srsepc/src/main.cc | 1 - srsepc/src/mbms-gw/main.cc | 1 - 2 files changed, 2 deletions(-) diff --git a/srsepc/src/main.cc b/srsepc/src/main.cc index ac035bb4f..a28c5b07a 100644 --- a/srsepc/src/main.cc +++ b/srsepc/src/main.cc @@ -384,7 +384,6 @@ int main(int argc, char* argv[]) { signal(SIGINT, sig_int_handler); signal(SIGTERM, sig_int_handler); - signal(SIGKILL, sig_int_handler); // print build info cout << endl << get_build_string() << endl; diff --git a/srsepc/src/mbms-gw/main.cc b/srsepc/src/mbms-gw/main.cc index da024c342..144f20913 100644 --- a/srsepc/src/mbms-gw/main.cc +++ b/srsepc/src/mbms-gw/main.cc @@ -190,7 +190,6 @@ int main(int argc, char* argv[]) cout << endl << "--- Software Radio Systems MBMS ---" << 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);