Skip to content

Instantly share code, notes, and snippets.

/-

Created December 31, 2014 18:32
Show Gist options
  • Save anonymous/6e5154e8f447c573816b to your computer and use it in GitHub Desktop.
Save anonymous/6e5154e8f447c573816b to your computer and use it in GitHub Desktop.
diff --git a/core/src/main/java/org/jruby/RubyGlobal.java b/core/src/main/java/org/jruby/RubyGlobal.java
index 131407a..810a931 100644
--- a/core/src/main/java/org/jruby/RubyGlobal.java
+++ b/core/src/main/java/org/jruby/RubyGlobal.java
@@ -276,7 +276,7 @@ public class RubyGlobal {
}
private static Channel prepareStdioChannel(Ruby runtime, STDIO stdio, Object stream) {
- if (runtime.getPosix().isNative() && stdio.isJVMDefault(stream)) {
+ if (runtime.getPosix().isNative() && stdio.isJVMDefault(stream) && !Platform.IS_WINDOWS) {
// use real native channel for stdio
return new NativeDeviceChannel(stdio.fileno());
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment