Patch for high cpu load issue
This commit is contained in:
1 parent
8998e9a47c
commit
5d9dfd294e
1 file changed
+3
@@ -273,10 +273,13 @@ private
|
||||
Thread.new do
|
||||
begin
|
||||
loop do
|
||||
wrote_data = false
|
||||
(IO.select(@readers.values).first || []).each do |reader|
|
||||
data = reader.gets
|
||||
wrote_data = !data.nil?
|
||||
output_with_mutex name_for(@readers.invert[reader]), data
|
||||
end
|
||||
sleep(1) unless wrote_data
|
||||
end
|
||||
rescue Exception => ex
|
||||
puts ex.message
|
||||
|
||||
Reference in new issue
Block a user