read() instead of sysread(), fixes ssh sessions

git-svn-id: file:///home/svn/framework3/trunk@12495 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-05-02 00:23:42 +00:00
parent 178ae10e22
commit 61ac192d0d
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class CommandStream
self.monitor = Thread.new do
while(true)
next if not self.rsock.has_read_data?(1.0)
buff = self.rsock.sysread(16384)
buff = self.rsock.read(16384)
break if not buff
verify_channel
self.channel.send_data(buff) if buff