commit | f80b7d347c0449034f48152f25ae972aaaae8a9e | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Thu Feb 19 03:11:13 2009 +0000 |
committer | Harald Welte <laforge@gnumonks.org> | Thu Feb 19 03:11:13 2009 +0000 |
tree | b8f2103e50076a4be493118041832e7cbefbd3d7 | |
parent | fb81ae9da2a35b1359a4c810733bac11519e09e1 [diff] [blame] |
bs11_config: makes sure we disconnect properly before exiting
diff --git a/src/rs232.c b/src/rs232.c index 90e8818..92e2e9b 100644 --- a/src/rs232.c +++ b/src/rs232.c
@@ -50,6 +50,8 @@ #define LAPD_HDR_LEN 10 +static int handle_ser_write(struct bsc_fd *bfd); + /* callback from abis_nm */ int _abis_nm_sendmsg(struct msgb *msg) { @@ -78,6 +80,9 @@ msgb_enqueue(&sh->tx_queue, msg); sh->fd.when |= BSC_FD_WRITE; + /* we try to immediately send */ + handle_ser_write(&sh->fd); + return 0; }