summaryrefslogtreecommitdiffstats
path: root/lib/vty_io_file.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-03-29 01:49:16 +0100
committerChris Hall <chris.hall@highwayman.com>2011-03-29 01:49:16 +0100
commitf9956b9524ddafdb9d0cec042213eaa8229aad8c (patch)
treebf362c892837ef3f5a6a4d4265eb18e1b47ccf33 /lib/vty_io_file.c
parent9470cb2c32eab220f796b1438b787528272cbe84 (diff)
downloadquagga-ex15p.tar.bz2
quagga-ex15p.tar.xz
Bring "ex" version up to date with 0.99.18ex15p
Release: 0.99.18ex15p -- Pipework Branch Also fixes issue with unknown attributes -- does not release them prematurely. Contains the "bgpd: New show commands for improved view and address family support", which is post 0.99.18. (But not RFC 5082 GTSM.)
Diffstat (limited to 'lib/vty_io_file.c')
-rw-r--r--lib/vty_io_file.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/vty_io_file.c b/lib/vty_io_file.c
index 2322114a..01a92a2d 100644
--- a/lib/vty_io_file.c
+++ b/lib/vty_io_file.c
@@ -368,12 +368,12 @@ uty_fifo_command_line(vio_vf vf, cmd_action action)
while (1)
{
char* s, * p, * e ;
- size_t have ;
+ ulen have ;
ulen len ;
bool eol ;
/* Get what we can from the fifo */
- s = vio_fifo_get(vf->ibuf, &have) ;
+ have = vio_fifo_get(vf->ibuf) ;
/* If fifo is empty, may be last line before eof, eof or waiting */
if (have == 0)
@@ -399,7 +399,7 @@ uty_fifo_command_line(vio_vf vf, cmd_action action)
* This means that we cope with "\r\n" line terminators. But not
* anything more exotic.
*/
- p = s ;
+ p = s = vio_fifo_get_ptr(vf->ibuf) ;
e = s + have ; /* have != 0 */
eol = false ;
@@ -956,6 +956,8 @@ uty_pipe_open_complete(vio_vf vf, pid_t pid, int ret_fd, vio_vf slave)
if (!vf->blocking)
vio_vfd_set_read_action(vf->pr_vfd, uty_pipe_return_ready) ;
+ vio_vfd_set_read_timeout_action(vf->pr_vfd, uty_pipe_return_timeout) ;
+
/* Configure master/slave relationship. */
slave->pr_master = vf ;
vf->pr_slave = slave ;