lib/braid/operations.rb in realityforge-braid-0.9.8 vs lib/braid/operations.rb in realityforge-braid-0.9.9
- old
+ new
@@ -109,10 +109,11 @@
log(cmd)
if USE_OPEN3
status = nil
Open3.popen3(cmd) do |stdin, stdout, stderr, wait_thread|
- stdin.close
+ # Under old jrubies this may sometimes throw an exception
+ stdin.close rescue nil
out = stdout.read
err = stderr.read
# Under earlier jrubies this is not correctly passed so add in check
status = wait_thread.value if wait_thread # Process::Status object returned.
end