samg / diffy

Easy Diffing in Ruby
http://rubygems.org/gems/diffy
MIT License
1.27k stars 104 forks source link

Use posix-spawn instead of Open3 #82

Closed RobWu closed 4 years ago

RobWu commented 7 years ago

posix-spawn (https://github.com/rtomayko/posix-spawn)

Use POSIX::Spawn::Child.new instead of Open3.popen3

See also

Q: Why use POSIX::Spawn::Child instead of popen3, hand rolled fork/exec code, or Process::spawn?

https://github.com/rtomayko/posix-spawn/blob/master/lib/posix/spawn/child.rb#L44

RobWu commented 7 years ago

Looks like 'posix-spawn' don't support jruby