lib/knj/process_meta.rb in knjrbfw-0.0.66 vs lib/knj/process_meta.rb in knjrbfw-0.0.67
- old
+ new
@@ -42,9 +42,10 @@
cmd = "#{exec_path} \"#{exec_file}\" #{Knj::Strings.unixsafe(id)}"
if RUBY_ENGINE == "jruby"
pid, @stdin, @stdout, @stderr = IO.popen4("#{exec_path} --#{RUBY_VERSION[0, 3]} \"#{exec_file}\" \"#{id}\"")
else
+ require "open3"
@stdin, @stdout, @stderr = Open3.popen3(cmd)
end
@stdout.sync = true
@stdin.sync = true
\ No newline at end of file