This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-cbc/+/22403 )
Change subject: terminate if CBSP or ECBE ports cannot be bound
......................................................................
terminate if CBSP or ECBE ports cannot be bound
Change-Id: I748648a0bd5a06da26cddc34ff0d9b6000e71370
---
M src/cbc_main.c
1 file changed, 10 insertions(+), 3 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/src/cbc_main.c b/src/cbc_main.c
index ff696bd..bf29a1a 100644
--- a/src/cbc_main.c
+++ b/src/cbc_main.c
@@ -244,10 +244,17 @@
exit(1);
}
- cbsp_cbc_create(tall_cbc_ctx, g_cbc->config.cbsp.local_host, g_cbc->config.cbsp.local_port,
- &cbc_client_rx_cb);
+ if (cbsp_cbc_create(tall_cbc_ctx, g_cbc->config.cbsp.local_host, g_cbc->config.cbsp.local_port,
+ &cbc_client_rx_cb) == NULL) {
+ perror("Error binidng CBSP port\n");
+ exit(1);
+ }
- rest_api_init(tall_rest_ctx, g_cbc->config.ecbe.local_host, g_cbc->config.ecbe.local_port);
+ rc = rest_api_init(tall_rest_ctx, g_cbc->config.ecbe.local_host, g_cbc->config.ecbe.local_port);
+ if (rc < 0) {
+ perror("Error binidng ECBE port\n");
+ exit(1);
+ }
LOGP(DREST, LOGL_INFO, "Main thread tid: %lu\n", pthread_self());
g_cbc->it_q.rest2main = osmo_it_q_alloc(g_cbc, "rest2main", 10, rest2main_read_cb, NULL);
--
To view, visit https://gerrit.osmocom.org/c/osmo-cbc/+/22403
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: I748648a0bd5a06da26cddc34ff0d9b6000e71370
Gerrit-Change-Number: 22403
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210124/5d4edb17/attachment.htm>