register handler for SIGTERM and SIGKILL in UE, eNB and EPC

master
Andre Puschmann 7 years ago
parent a08bbe5ad4
commit 03e7d9c199

@ -365,6 +365,8 @@ void *input_loop(void *m)
int main(int argc, char *argv[]) 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; all_args_t args;
metrics_stdout metrics; metrics_stdout metrics;
enb *enb = enb::get_instance(); enb *enb = enb::get_instance();

@ -259,6 +259,8 @@ main (int argc,char * argv[] )
{ {
cout << endl <<"--- Software Radio Systems EPC ---" << endl << endl; cout << endl <<"--- Software Radio Systems EPC ---" << endl << endl;
signal(SIGINT, sig_int_handler); signal(SIGINT, 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);

@ -425,6 +425,8 @@ int main(int argc, char *argv[])
{ {
srslte::metrics_hub<ue_metrics_t> metricshub; srslte::metrics_hub<ue_metrics_t> metricshub;
signal(SIGINT, sig_int_handler); signal(SIGINT, sig_int_handler);
signal(SIGTERM, sig_int_handler);
signal(SIGKILL, sig_int_handler);
all_args_t args; all_args_t args;
srslte_debug_handle_crash(argc, argv); srslte_debug_handle_crash(argc, argv);

Loading…
Cancel
Save