Skip to content

Commit

Permalink
Semi-silently ignore close_on_exec= on Windows for now.
Browse files Browse the repository at this point in the history
Fixes #4910.
  • Loading branch information
headius committed Jan 24, 2018
1 parent c9bfede commit 2cb38f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/RubyIO.java
Expand Up @@ -2185,8 +2185,8 @@ public IRubyObject close_on_exec_set(ThreadContext context, IRubyObject arg) {
int fd = -1;

if (fptr == null || (fd = fptr.fd().realFileno) == -1
|| !posix.isNative()) {
runtime.getWarnings().warning("close_on_exec is not implemented for this stream type: " + fptr.fd().ch.getClass().getSimpleName());
|| !posix.isNative() || Platform.IS_WINDOWS ) {
runtime.getWarnings().warning("close_on_exec is not implemented on this platform for this stream type: " + fptr.fd().ch.getClass().getSimpleName());
return context.nil;
}

Expand Down

0 comments on commit 2cb38f3

Please sign in to comment.