diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-06-03 12:41:24 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-06-03 12:44:38 +0200 |
commit | 8b0d5b3726da5f35751d14a6c2238af2851e3a19 (patch) | |
tree | 4dd407cf589ffd7f6c078ead2a9d1b0bb5ef4120 /include/osmocom/gprs/protocol | |
parent | 98d77bd4dcef86cb0a56bc0a5162bc407fb566d3 (diff) |
VTY: safe version of printing VTY welcome message
The old method used raw writes to the telnet FD, which is bad for
several reasons:
a) we don't know if we can actually write that many bytes to the
socket at the given time
b) the socket is still in blocking mode, so we could stall the entire
process
c) there may be weird interaction with the buffered writes of the
vty_out
Now, the print_welcome() functionality has moved to vty_hello() instead,
where we can use normal vty_out() in buffered mode.
This commit is expected to fix the garbled welcome message on arm-eglibc
targets.
It might still be a good idea to migrate the entire telnet interface to
libtelnet - but at some later time ;)
Diffstat (limited to 'include/osmocom/gprs/protocol')
0 files changed, 0 insertions, 0 deletions