Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix procfs's open_and_check_file to work in the presence of threads. #1059

Merged
merged 3 commits into from
May 21, 2024

Conversation

sunfishcode
Copy link
Member

Have open_and_check_file create a new file descriptor before scanning for directory entries, so that it doesn't share a directory position with other threads.

Fixes #1050.

Have `open_and_check_file` create a new file descriptor before scanning
for directory entries, so that it doesn't share a directory position
with other threads.

Fixes #1050.
@sunfishcode sunfishcode merged commit b26eca9 into main May 21, 2024
42 of 43 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/procfs-threads branch May 21, 2024 00:56
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.

proc_self_status fails on concurrent calls
1 participant