Guest User

Untitled

a guest
Apr 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. diff --git a/chef/lib/chef/mixin/command.rb b/chef/lib/chef/mixin/command.rb
  2. index 946c16d..606d52d 100644
  3. --- a/chef/lib/chef/mixin/command.rb
  4. +++ b/chef/lib/chef/mixin/command.rb
  5. @@ -341,8 +341,10 @@ class Chef
  6. channels_to_watch << stderr if !stderr_finished
  7. ready = IO.select(channels_to_watch, nil, nil, 1.0)
  8. rescue Errno::EAGAIN
  9. + ensure
  10. results = Process.waitpid2(cid, Process::WNOHANG)
  11. if results
  12. + results = results.last
  13. stdout_finished = true
  14. stderr_finished = true
  15. end
Add Comment
Please, Sign In to add comment