Skip to content

Fix calling proc_self_status() more than once.#995

Merged
sunfishcode merged 1 commit intomainfrom
sunfishcode/procfs-twice
Jan 16, 2024
Merged

Fix calling proc_self_status() more than once.#995
sunfishcode merged 1 commit intomainfrom
sunfishcode/procfs-twice

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