dexter has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/31679 )


Change subject: pcu_sock: do not mess with the osmo fd flags directly
......................................................................

pcu_sock: do not mess with the osmo fd flags directly

When we disable the old socket connection, lets use
osmo_fd_read_disable().

Change-Id: I6b6854e9881c79b5c4794bde4ba4f6841dd06386
---
M src/common/pcu_sock.c
1 file changed, 13 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/79/31679/1

diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index ae78939..4eb7c27 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -1172,7 +1172,7 @@
        if (conn_bfd->fd >= 0) {
                LOGP(DPCU, LOGL_NOTICE, "PCU connects but we already have 
another active connection ?!?\n");
                /* We already have one PCU connected, this is all we support */
-               state->listen_bfd.when &= ~OSMO_FD_READ;
+               osmo_fd_read_disable(&state->listen_bfd);
                close(conn_bfd->fd);
                return 0;
        }

--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/31679
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6b6854e9881c79b5c4794bde4ba4f6841dd06386
Gerrit-Change-Number: 31679
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <[email protected]>
Gerrit-MessageType: newchange

Reply via email to