Skip to content

Commit

Permalink
Rescue EBADF on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Oct 13, 2017
1 parent 47dd4ac commit d7d5f3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/puppet/resource_api/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def run(context, *args,
result.stderr += chunk
end
end
rescue Errno::EBADF # rubocop:disable Lint/HandleExceptions
# This can be thrown on Windows after the process has gone away
# ignore, retry WaitReadable through outer loop
rescue IO::WaitReadable, EOFError # rubocop:disable Lint/HandleExceptions
# ignore, retry WaitReadable through outer loop
end
Expand Down

0 comments on commit d7d5f3d

Please sign in to comment.