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 calling proc_self_status() more than once. #995

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

sunfishcode
Copy link
Member

Fix proc_self_status() to reset the directory cursor before iterating through the directory entries when searching for bind mounts. This fixes a failure when called more than once, due to the cursor being left at the end.

Fixes #994.

Fix `proc_self_status()` to reset the directory cursor before iterating
through the directory entries when searching for bind mounts. This fixes
a failure when called more than once, due to the cursor being left at
the end.

Fixes #994.
@sunfishcode sunfishcode force-pushed the sunfishcode/procfs-twice branch from 01e567e to 779eb9b Compare January 16, 2024 21:54
@sunfishcode sunfishcode merged commit 85eea13 into main Jan 16, 2024
@sunfishcode sunfishcode deleted the sunfishcode/procfs-twice branch January 16, 2024 22:29
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 second invocation
1 participant