Merge pull request 'Add -w flag to lsof so that it doesn't fail if there is an non accesible cifs filesystem mounted' (#50) from MymsMan/webif:Fix_system_inuse into master
Reviewed-on: #50
This commit is contained in:
commit
3bf7a9ee6c
@ -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