diff options
Diffstat (limited to 'bin/elogin.in')
-rw-r--r-- | bin/elogin.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/elogin.in b/bin/elogin.in index e58f149..a477c94 100644 --- a/bin/elogin.in +++ b/bin/elogin.in @@ -1,8 +1,8 @@ #! @EXPECT_PATH@ -- ## -## $Id: elogin.in,v 1.33 2005/06/14 20:20:43 heas Exp $ +## $Id: elogin.in,v 1.36 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 @@ -407,9 +407,11 @@ proc run_commands { prompt command } { } send "exit\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 } |