summaryrefslogtreecommitdiff
path: root/shutdownasap.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-01-10 19:30:36 +0100
committerErich Eckner <git@eckner.net>2024-01-10 19:30:36 +0100
commit3661e0f42e16b4a3a3636324731ba4f3127def2d (patch)
treeb3f0a5c04df3e6a533a0cb46350d9b701c3e817e /shutdownasap.in
parent7b2ffd4a09edbeb01aa3b98a2454a9ddb6ac5481 (diff)
downloadshutdownasap-3661e0f42e16b4a3a3636324731ba4f3127def2d.tar.xz
shutdownasap: look in /proc/ what file ids are still running
Diffstat (limited to 'shutdownasap.in')
-rwxr-xr-xshutdownasap.in2
1 files changed, 1 insertions, 1 deletions
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