From a0be206eb419f63eeb436631cc91b3456dff006f Mon Sep 17 00:00:00 2001 From: Tar Committer Date: Sat, 12 Aug 2006 02:59:43 +0000 Subject: Imported from rancid-2.3.2a5.tar.gz. --- bin/blogin.in | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bin/blogin.in') diff --git a/bin/blogin.in b/bin/blogin.in index 63dae4c..6233820 100644 --- a/bin/blogin.in +++ b/bin/blogin.in @@ -1,8 +1,8 @@ #! @EXPECT_PATH@ -- ## -## $Id: blogin.in,v 1.28 2005/06/14 20:20:43 heas Exp $ +## $Id: blogin.in,v 1.31 2006/08/10 07:00:30 heas Exp $ ## -## Copyright (C) 1997-2004 by Terrapin Communications, Inc. +## Copyright (C) 1997-2006 by Terrapin Communications, Inc. ## All rights reserved. ## ## This software may be freely copied, modified and redistributed @@ -468,9 +468,11 @@ proc run_commands { prompt command } { } send "logout\r" expect { - "\n" { exp_continue } - timeout { return 0 } - eof { return 0 } + "\n" { exp_continue } + timeout { catch {close}; wait + return 0 + } + eof { return 0 } } set in_proc 0 } -- cgit