fix some exit situations, that was badly done by SIGUSR1 handler

This commit is contained in:
laurent
2018-09-05 17:03:19 +02:00
parent c83fc1b544
commit abbffef015
13 changed files with 20 additions and 18 deletions
+5 -1
View File
@@ -22,7 +22,11 @@
openair0_device openair0;
volatile int oai_exit=0;
void exit_fun(const char *s) { exit(-1); }
void exit_function(const char* file, const char* function, const int line,const char *s) {
const char * msg= s==NULL ? "no comment": s;
printf("Exiting at: %s:%d %s(), %s\n", file, line, function, msg);
exit(-1);
}
extern unsigned int dlsch_tbs25[27][25],TBStable[27][110];
extern unsigned char offset_mumimo_llr_drange_fix;