◐ Shell
clean mode source ↗

Save errno inside allow_threads in semaphore acquire by youknowone · Pull Request #7391 · RustPython/RustPython

@youknowone marked this pull request as ready for review

March 9, 2026 15:47

coderabbitai[bot]

coderabbitai[bot]

coderabbitai[bot]

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

Mar 19, 2026
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

Mar 22, 2026
allow_threads may call attach_thread() on return, which
can invoke syscalls that clobber errno. Capture errno
inside the closure before it is lost.