You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 afork
.Monitoring
open
andclose
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.The text was updated successfully, but these errors were encountered: