diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/open3.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/open3.rb b/lib/open3.rb index 6ec4a941d2..959181b67d 100644 --- a/lib/open3.rb +++ b/lib/open3.rb @@ -190,6 +190,7 @@ module Open3 module_function :popen2e def popen_run(cmd, opts, child_io, parent_io) # :nodoc: + opts = opts.merge(cmd.pop) if cmd.last.kind_of? Hash pid = spawn(*cmd, opts) wait_thr = Process.detach(pid) child_io.each {|io| io.close } |