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

File descriptor accounting #3

Open
zmitchell opened this issue Sep 8, 2024 · 0 comments
Open

File descriptor accounting #3

zmitchell opened this issue Sep 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zmitchell
Copy link
Owner

It would be convenient if proctrace could keep track of which file descriptors were open at which points in time, including which ones were inherited via a fork.

Monitoring open and close syscalls is pretty straightforward, but determining which fds were inherited is less straightforward.
I think you find the file table through the $cur_task builtin variable, but it seems like in the actual kernel you're supposed to do this while holding some kind of lock, and we don't have that lock.

@zmitchell zmitchell added the enhancement New feature or request label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant