-
Notifications
You must be signed in to change notification settings - Fork 110
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
lsof -b may still cause kernel blocks #181
Comments
If your strace supports -k option, could you run the strace command with the option, so I can find in which context, the systems calls are called. |
Here's a sample strace lsof invocation:
|
Thank you. I read gather_proc_info and process_id. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[Linux] I'm not sure if this is a bug, but
lsof -b
does not entirely avoid blocking calls. While it avoid stat/lstat/readlink calls on the mounted filesystems,strace
shows that it still callslstat
andstat
on the file descriptor symlinks in/proc/*/fd/*
. Unlikelstat
,stat
will resolve symlinks, so if the open file handle is on a filesystem that's hung, then lsof will hang as well, even with the-b
option.I've tested this on Linux using the latest version of lsof
The text was updated successfully, but these errors were encountered: