Skip to content

Use JDK for File#flock on Windows#9347

Merged
headius merged 1 commit intojruby:jruby-9.4from
headius:jdk_flock_windows
Mar 30, 2026
Merged

Use JDK for File#flock on Windows#9347
headius merged 1 commit intojruby:jruby-9.4from
headius:jdk_flock_windows

Conversation

@headius
Copy link
Copy Markdown
Member

@headius headius commented Mar 30, 2026

Windows does not use native file descriptors and does not properly bind a native flock function, so this logic should not be used on Windows.

Forcing this logic to use the JDK equivalent flocking API appears to resolve issues with the Logger gem.

Fixes #8801

Windows does not use native file descriptors and does not properly
bind a native `flock` function, so this logic should not be used on
Windows.

Forcing this logic to use the JDK equivalent flocking API appears
to resolve issues with the Logger gem.

Fixes jruby#8801
@headius headius added this to the JRuby 9.4.15.0 milestone Mar 30, 2026
@headius headius merged commit 831e875 into jruby:jruby-9.4 Mar 30, 2026
98 checks passed
@headius headius deleted the jdk_flock_windows branch March 30, 2026 17:43
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

Successfully merging this pull request may close these issues.

1 participant