osmo-nitb: exit when MNCC socket init failed
Change-Id: Icef97bb5da9840b810fe6f4b4da6abd4baa66915
This commit is contained in:
parent
42eb0141d7
commit
50669bebdb
|
@ -292,9 +292,13 @@ int main(int argc, char **argv)
|
|||
#endif
|
||||
|
||||
/* Initialize MNCC socket if appropriate */
|
||||
if (mncc_sock_path)
|
||||
mncc_sock_init(bsc_gsmnet, mncc_sock_path);
|
||||
else
|
||||
if (mncc_sock_path) {
|
||||
rc = mncc_sock_init(bsc_gsmnet, mncc_sock_path);
|
||||
if (rc) {
|
||||
fprintf(stderr, "MNCC socket initialization failed. exiting.\n");
|
||||
exit(1);
|
||||
}
|
||||
} else
|
||||
DEBUGP(DMNCC, "Using internal MNCC handler.\n");
|
||||
|
||||
/* Read the config */
|
||||
|
|
Loading…
Reference in New Issue