~rbn/buildslack

4adc0f3a764053151b32c27acbe56cb7f856872b — Ruben Schuller 2 months ago 66ab701
lsof -Q to not fail on empty result
1 files changed, 1 insertions(+), 1 deletions(-)

M environment.tcl
M environment.tcl => environment.tcl +1 -1
@@ 140,7 140,7 @@ namespace eval ::buildslack::environment {

		dict with environment {
			log::log info "killing processes holding files in mounted environment $buildroot:"
			set pids [ exec -ignorestderr lsof -t $buildroot ]
			set pids [ exec -ignorestderr lsof -Q -t $buildroot ]
			foreach p [ split $pids ] {
				set f [ open /proc/$p/cmdline ]
				set cmdline [ read $f ]