Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO.popen(cmd, "w+") generates a non-writable pipe in JRuby 9.0.1.0 #3369

Closed
artificial-guru opened this issue Oct 4, 2015 · 1 comment
Closed

Comments

@artificial-guru
Copy link

The following code works in JRuby 1.7.22:

cmd = "C:/Lang/R/x64/bin/xterm.exe --ess --slave"
engine = IO.popen(cmd, "w+")
engine.write("x <- 20")

The same code generates the following error message in JRuby 9.0.1.0:

IOError: not opened for writing
  write at org/jruby/RubyIO.java:1437
  write at org/jruby/RubyIO.java:1411

My underlying platform is JDK 8 (x64), update 60 on Windows 10.

jruby 9.0.1.0 (2.2.2) 2015-09-02 583f336 Java HotSpot(TM) 64-Bit Server VM 25.60-b23 on 1.8.0_60-b27 +jit [Windows 10-amd64]
@headius
Copy link
Member

headius commented Sep 18, 2019

This is a known issue with subprocess IO on Windows and still remains an issue. However we have #4964 and others that document this issue. Since this is almost four years old and duplicated by others, I'm going to close it.

@headius headius closed this as completed Sep 18, 2019
@headius headius added this to the Invalid or Duplicate milestone Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants