mirror of https://github.com/PentHertz/srsLTE.git
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."
This commit is contained in:
parent
ed179fd311
commit
64de92183b
|
@ -384,7 +384,6 @@ int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
signal(SIGINT, sig_int_handler);
|
signal(SIGINT, sig_int_handler);
|
||||||
signal(SIGTERM, sig_int_handler);
|
signal(SIGTERM, sig_int_handler);
|
||||||
signal(SIGKILL, sig_int_handler);
|
|
||||||
|
|
||||||
// print build info
|
// print build info
|
||||||
cout << endl << get_build_string() << endl;
|
cout << endl << get_build_string() << endl;
|
||||||
|
|
|
@ -190,7 +190,6 @@ int main(int argc, char* argv[])
|
||||||
cout << endl << "--- Software Radio Systems MBMS ---" << endl << endl;
|
cout << endl << "--- Software Radio Systems MBMS ---" << endl << endl;
|
||||||
signal(SIGINT, sig_int_handler);
|
signal(SIGINT, sig_int_handler);
|
||||||
signal(SIGTERM, sig_int_handler);
|
signal(SIGTERM, sig_int_handler);
|
||||||
signal(SIGKILL, sig_int_handler);
|
|
||||||
|
|
||||||
all_args_t args;
|
all_args_t args;
|
||||||
parse_args(&args, argc, argv);
|
parse_args(&args, argc, argv);
|
||||||
|
|
Loading…
Reference in New Issue