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:
parent
fd9188c8f6
commit
d7f7928d79
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user