Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
The child-process gem fails to spawn processes on Windows #4122
jruby version: jruby 188.8.131.52 (2.3.1) 2016-08-29 a2a3b29 Java HotSpot(TM) 64-Bit Server VM 25.66-b18 on 1.8.0_66-b18 +jit [mswin32-x86_64]
gem 'childprocess' require 'childprocess' cp = ChildProcess.new('notepad.exe') cp.start # errors
... should spawn a new process. This works on jruby 184.108.40.206
This exception is raised:
I noticed that issue #2598 has an identical error message.
Tracked it down to the fix for Drip in #2690 (7e024a7) which modified stdio behavior to report actual fileno rather than always the 0, 1, 2 of typical in, out, err. This works fine on platforms where we can use native IO, but our Windows IO logic is not native yet. In addition, when running without native calls enabled, we still need to gracefully fall back and report 0, 1, 2.
I have a patch in progress.