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: hummypkg/webif#50
This commit is contained in:
prpr 2024-02-05 19:21:43 +00:00
commit 3bf7a9ee6c
1 changed files with 1 additions and 1 deletions

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 }