Commit 73e351d8 authored by Raphael Defosseux's avatar Raphael Defosseux

fix(enb): start_background_system was not called in noS1 mode

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 518650ff
...@@ -209,6 +209,10 @@ int background_system(char *command) { ...@@ -209,6 +209,10 @@ int background_system(char *command) {
void start_background_system(void) { void start_background_system(void) {
int p[2]; int p[2];
pid_t son; pid_t son;
if (module_initialized == 1)
return;
module_initialized = 1; module_initialized = 1;
if (pipe(p) == -1) { if (pipe(p) == -1) {
......
...@@ -525,6 +525,8 @@ int main ( int argc, char **argv ) ...@@ -525,6 +525,8 @@ int main ( int argc, char **argv )
int ru_id; int ru_id;
int node_type = ngran_eNB; int node_type = ngran_eNB;
start_background_system();
if ( load_configmodule(argc,argv,0) == NULL) { if ( load_configmodule(argc,argv,0) == NULL) {
exit_fun("[SOFTMODEM] Error, configuration module init failed\n"); exit_fun("[SOFTMODEM] Error, configuration module init failed\n");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment