summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2009-12-09 13:03:24 +0000
committerpaulo <paul@bayleaf.org.uk>2009-12-09 13:03:24 +0000
commit052ac33cebca8347163998f8be997cc9548004bb (patch)
tree2747c48e2a96ff9aec9f3ff601f0ba8db0ca74dd /lib/vty.c
parentf24f220c54649d7a3098cb1aeaed87cac9d28053 (diff)
downloadquagga-052ac33cebca8347163998f8be997cc9548004bb.tar.bz2
quagga-052ac33cebca8347163998f8be997cc9548004bb.tar.xz
Fix timeouts in nexus, fix LOCK in vty
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 6b0d2a5c..0817d21a 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2244,8 +2244,8 @@ vty_serv_un (const char *path)
void int
vtysh_accept_r (qps_file qf, void* file_info)
{
- LOCK
int accept_sock = qf->fd;
+ LOCK
utysh_accept (accept_sock);
UNLOCK
}
@@ -2254,8 +2254,8 @@ vtysh_accept_r (qps_file qf, void* file_info)
static int
vtysh_accept (struct thread *thread)
{
- LOCK
int accept_sock = THREAD_FD (thread);
+ LOCK
result = utysh_accept (accept_sock);
UNLOCK
return result;