summaryrefslogtreecommitdiff
path: root/shutdownasap.in
diff options
context:
space:
mode:
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 3f2b90b..ba092f6 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -28,7 +28,7 @@ while [ $# -gt 0 ]; do
if [ -r "${tmpDir}/intention" ] \
&& grep -qxF 'shutdown' "${tmpDir}/intention" \
&& [ -r "${tmpDir}/pid" ] \
- && kill -0 "$(cat "${tmpDir}/pid")"; then
+ && [ -d "/proc/$(cat "${tmpDir}/pid")" ]; then
exit
fi
echo 'reboot' >"${tmpDir}/intention"