We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e50e94a + 881a0d9 commit 831e875Copy full SHA for 831e875
1 file changed
core/src/main/java/org/jruby/util/io/PosixShim.java
@@ -216,7 +216,8 @@ public int flock(ChannelFD fd, int lockMode) {
216
217
int real_fd = fd.realFileno;
218
219
- if (posix.isNative() && real_fd != -1 && real_fd < FilenoUtil.FIRST_FAKE_FD && !Platform.IS_SOLARIS) {
+ if (!Platform.IS_SOLARIS && !Platform.IS_WINDOWS &&
220
+ posix.isNative() && real_fd != -1 && real_fd < FilenoUtil.FIRST_FAKE_FD) {
221
// we have a real fd and not on Solaris...try native flocking
222
// see jruby/jruby#3254 and jnr/jnr-posix#60
223
int result = posix.flock(real_fd, lockMode);
0 commit comments