-
Notifications
You must be signed in to change notification settings - Fork 128
Open
Description
[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 calls lstat and stat on the file descriptor symlinks in /proc/*/fd/*. Unlike lstat, 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels