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

master
Andre Puschmann 7 years ago
parent a08bbe5ad4
commit 03e7d9c199

@ -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();

@ -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);

@ -425,6 +425,8 @@ int main(int argc, char *argv[])
{
srslte::metrics_hub<ue_metrics_t> 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);

Loading…
Cancel
Save