summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-06-23 22:10:01 +0200
committerHarald Welte <laforge@gnumonks.org>2012-06-23 22:10:01 +0200
commit3cb4b79548b24bd86871c1e647dbf7c5dd018049 (patch)
tree4e684460d13509a1858da69d00f15240148a3a86
parent7026b85b58b6cba1d14b37afda8ff2126f995655 (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);