summaryrefslogtreecommitdiffstats
path: root/bin/nslogin.in
diff options
context:
space:
mode:
authorTar Committer <tar@ocjtech.us>2006-08-12 02:59:43 +0000
committerTar Committer <tar@ocjtech.us>2006-08-12 02:59:43 +0000
commita0be206eb419f63eeb436631cc91b3456dff006f (patch)
treec6881dc33ba7c94bb44193930402067bbe4350f5 /bin/nslogin.in
parent1cc9f22072de1d314a67387aac57740fb25c5258 (diff)
downloadrancid-a0be206eb419f63eeb436631cc91b3456dff006f.tar.gz
rancid-a0be206eb419f63eeb436631cc91b3456dff006f.tar.xz
rancid-a0be206eb419f63eeb436631cc91b3456dff006f.zip
Imported from rancid-2.3.2a5.tar.gz.rancid-2.3.2a5
Diffstat (limited to 'bin/nslogin.in')
-rw-r--r--bin/nslogin.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/nslogin.in b/bin/nslogin.in
index b48004d..2de297d 100644
--- a/bin/nslogin.in
+++ b/bin/nslogin.in
@@ -1,8 +1,8 @@
#! @EXPECT_PATH@ --
##
-## $Id: nslogin.in,v 1.17 2005/06/14 22:23:44 heas Exp $
+## $Id: nslogin.in,v 1.19 2006/08/10 07:00:31 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
@@ -500,7 +500,9 @@ proc run_commands { prompt command } {
exp_continue
}
"\n" { exp_continue }
- timeout { return 0 }
+ timeout { catch {close}; wait
+ return 0
+ }
eof { return 0 }
}
set in_proc 0