diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-02-03 09:48:00 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-02-03 09:48:00 +0000 |
commit | 06d4e3b42d836b762c29cdc9dc7181caf14dcdec (patch) | |
tree | 4c85b1a55d024c59143e193b17e2444cb6873c6e /lib | |
parent | 99839272a3cf1dfe69bd3bad26d96a915b905ef1 (diff) |
990203
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_3@389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/telnet.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/telnet.rb b/lib/telnet.rb index e3c590c35d..0336bda801 100644 --- a/lib/telnet.rb +++ b/lib/telnet.rb @@ -356,9 +356,9 @@ class Telnet < SimpleDelegator end line = '' - until(not select([@sock], nil, nil, waittime) and prompt === line) + until(not IO::select([@sock], nil, nil, waittime) and prompt === line) raise TimeOut, "timed-out; wait for the next data" if - not select([@sock], nil, nil, timeout) + not IO::select([@sock], nil, nil, timeout) buf = '' begin buf = @sock.sysread(1024 * 1024) @@ -405,7 +405,7 @@ class Telnet < SimpleDelegator string = options end - select(nil, [@sock]) + IO::select(nil, [@sock]) print(string) if iterator? waitfor({"Prompt" => match, "Timeout" => timeout}){|c| yield c } |