Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/chef/lib/chef/mixin/command.rb b/chef/lib/chef/mixin/command.rb
- index 946c16d..606d52d 100644
- --- a/chef/lib/chef/mixin/command.rb
- +++ b/chef/lib/chef/mixin/command.rb
- @@ -341,8 +341,10 @@ class Chef
- channels_to_watch << stderr if !stderr_finished
- ready = IO.select(channels_to_watch, nil, nil, 1.0)
- rescue Errno::EAGAIN
- + ensure
- results = Process.waitpid2(cid, Process::WNOHANG)
- if results
- + results = results.last
- stdout_finished = true
- stderr_finished = true
- end
Add Comment
Please, Sign In to add comment