Save errno inside allow_threads in semaphore acquire by youknowone · Pull Request #7391 · RustPython/RustPython
marked this pull request as ready for review
allow_threads may call attach_thread() on return, which can invoke syscalls that clobber errno. Capture errno inside the closure before it is lost.
youknowone added a commit to youknowone/RustPython that referenced this pull request
youknowone added a commit to youknowone/RustPython that referenced this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters