From d7f7928d7969cf7eff2133f2c31a3f3aedd7fdba Mon Sep 17 00:00:00 2001 From: MymsMan Date: Mon, 5 Feb 2024 16:44:24 +0000 Subject: [PATCH] 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 --- webif/lib/system.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webif/lib/system.class b/webif/lib/system.class index fdb09a2..a9f78a1 100644 --- a/webif/lib/system.class +++ b/webif/lib/system.class @@ -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 }