commit | d514e7cb91d706322b53118bcad068b6254a7d96 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Sat Mar 16 10:13:04 2013 +0100 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Mon Jun 24 10:59:40 2013 +0200 |
tree | 8c68de07670633fbe550c9e1f97f985f767f9a22 | |
parent | e7b751c08d87d0afd053eb1df5f1abecccc843e9 [diff] |
ctrlif: Flush/Clear write_queue when closing the control socket
diff --git a/openbsc/src/libctrl/control_if.c b/openbsc/src/libctrl/control_if.c index beb5b43..b31f34f 100644 --- a/openbsc/src/libctrl/control_if.c +++ b/openbsc/src/libctrl/control_if.c
@@ -256,6 +256,7 @@ static void control_close_conn(struct ctrl_connection *ccon) { + osmo_wqueue_clear(&ccon->write_queue); close(ccon->write_queue.bfd.fd); osmo_fd_unregister(&ccon->write_queue.bfd); llist_del(&ccon->list_entry);