Skip to content

alias winapi_error to lasterror#7527

Merged
enebo merged 1 commit intojruby:masterfrom
ahorek:winapi_error_fix
Dec 15, 2022
Merged

alias winapi_error to lasterror#7527
enebo merged 1 commit intojruby:masterfrom
ahorek:winapi_error_fix

Conversation

@ahorek
Copy link
Contributor

@ahorek ahorek commented Dec 15, 2022

the current implementation isn't thread-safe, so the current errno context could be lost

errno is already implemented via LastError, so let's just alias it https://github.com/jnr/jffi/blob/master/jni/jffi/LastError.c#L72

fixes #7521

@larskanis
Copy link

Looks good!

@enebo enebo added this to the JRuby 9.4.1.0 milestone Dec 15, 2022
@enebo enebo merged commit 278aaac into jruby:master Dec 15, 2022
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.

FFI errno spec fails on JRuby on Windows

3 participants