From 052ac33cebca8347163998f8be997cc9548004bb Mon Sep 17 00:00:00 2001 From: paulo Date: Wed, 9 Dec 2009 13:03:24 +0000 Subject: Fix timeouts in nexus, fix LOCK in vty --- lib/vty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/vty.c') 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; -- cgit v1.2.3