summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-23 22:10:01 +0200
committerHarald Welte <laforge@gnumonks.org>2015-11-15 14:04:06 +0100
commit7e2ec920c8c8e042c4ecd70372cd371d44b980e9 (patch)
treedf793a00fc39854969e58feb473b4c494d5e3aa6
parentda06516b26b459664ca4b5ea9e450dd76ac1d91f (diff)
osmo-ganc: actually register the accepted fd's with select loop
-rw-r--r--openbsc/src/osmo-ganc/conn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/osmo-ganc/conn.c b/openbsc/src/osmo-ganc/conn.c
index 1c25275..187a80e 100644
--- a/openbsc/src/osmo-ganc/conn.c
+++ b/openbsc/src/osmo-ganc/conn.c
@@ -58,9 +58,12 @@ static int server_fd_cb(struct osmo_fd *ofd, unsigned int what)
conn->queue.read_cb = slave_read_cb;
conn->queue.write_cb = slave_write_cb;
+ conn->queue.bfd.fd = rc;
conn->queue.bfd.when = BSC_FD_READ | BSC_FD_WRITE;
conn->queue.bfd.data = conn;
+ osmo_fd_register(&conn->queue.bfd);
+
conn->remote.host = talloc_strdup(conn, inet_ntoa(sa.sin_addr));
conn->remote.port = ntohs(sa.sin_port);