From 3661e0f42e16b4a3a3636324731ba4f3127def2d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 10 Jan 2024 19:30:36 +0100 Subject: shutdownasap: look in /proc/ what file ids are still running --- shutdownasap.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shutdownasap.in b/shutdownasap.in index 2901e8f..6a4acc1 100755 --- a/shutdownasap.in +++ b/shutdownasap.in @@ -133,7 +133,7 @@ do for s in "${!shutDownNoGoFiles[@]}" do - if [ -e "${shutDownNoGoFiles[${s}]}" ] && echo "${prozesse}" | grep -q "^\S\+\s\+$(cat "${shutDownNoGoFiles[${s}]}")\s" + if [ -e "${shutDownNoGoFiles[${s}]}" ] && [ -d "/proc/$(cat "${shutDownNoGoFiles[${s}]}")" ] then nochwarten=true if ! ${quiet}; then -- cgit v1.2.3-70-g09d2