Skip to content

Commit

Permalink
Merge pull request ddollar#273 from silviorelli/master
Browse files Browse the repository at this point in the history
Fix for fix on issue ddollar#260
  • Loading branch information
ddollar committed Oct 8, 2012
2 parents 3a101ec + f7b7029 commit 73fc059
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/foreman/engine.rb
Expand Up @@ -273,7 +273,8 @@ def watch_for_output
Thread.new do
begin
loop do
(IO.select(@readers.values, nil, nil, 30).first || []).each do |reader|
io = IO.select(@readers.values, nil, nil, 30)
(io.nil? ? [] : io.first).each do |reader|
data = reader.gets
output_with_mutex name_for(@readers.invert[reader]), data
end
Expand Down

0 comments on commit 73fc059

Please sign in to comment.