diff --git a/lib/bolt/shell/bash.rb b/lib/bolt/shell/bash.rb index 5c533b0b9..f73a92ced 100644 --- a/lib/bolt/shell/bash.rb +++ b/lib/bolt/shell/bash.rb @@ -469,7 +469,7 @@ def execute(command, sudoable: false, **options) read_streams[stream] << to_print result_output.merged_output << to_print } - rescue Errno::EAGAIN, EOFError + rescue Errno::EAGAIN, Errno::EWOULDBLOCK, EOFError ensure stream.close end