Add -w -f flags to lsof so that it doesn't fail if there is an non accesible cifs filesystem mounted

Note performance is still impacted - about 10s
This commit is contained in:
Bob Buxton 2024-02-05 16:44:24 +00:00
parent fd9188c8f6
commit d7f7928d79

View File

@ -530,7 +530,7 @@ proc {system busy} {} {
proc {system inuse} {file} {
if {![file exists $file]} { return 0 }
set op [exec /mod/webif/lib/bin/lsof -X -Fn $file]
set op [exec /mod/webif/lib/bin/lsof -X -w -Fn $file]
switch -glob -- $op {
"" -
"*status error*" { return 0 }