Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyGlobal.java
Original file line number Diff line number Diff line change
@@ -279,7 +279,7 @@ public static void initSTDIO(Ruby runtime, GlobalVariables globals) {
RubyIO stdin, stdout, stderr;

// If we're the main for the process and native stdio is enabled, use default descriptors
if (runtime.getInstanceConfig().isHardExit() && Options.NATIVE_STDIO.load()) {
if (runtime.getPosix().isNative() && runtime.getInstanceConfig().isHardExit() && Options.NATIVE_STDIO.load()) {
stdin = RubyIO.prepStdio(
runtime, runtime.getIn(), new NativeDeviceChannel(0), OpenFile.READABLE, runtime.getIO(), "<STDIN>");
stdout = RubyIO.prepStdio(

0 comments on commit 6570888

Please sign in to comment.