1.创建文件:
touch 1.txt
2.Loop
for i in {0..1000}; do fuser 1.txt;done
3.观察~50次失败:
...
Cannot stat file /proc/16927/fd/0: No such file or directory
Cannot stat file /proc/17821/fd/0: No such file or directory
Cannot stat file /proc/17823/fd/0: No such file or directory
...
4。为什么会这样失败?
5.附加信息:本地FS,ext3,stat始终返回有效响应,'selinux'off
答案 0 :(得分:0)
我假设fuser
遍历正在运行的进程,并查找指向该文件的开放fd
,并且在该尝试期间,某些进程在{{{}期间死亡1}}检查它们。 - Etan Reisner