fix(enb): start_background_system was not called in noS1 mode
Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
@@ -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 )
|
|||||||
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");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user