From ea0bd030bcd9328567e5558151c0e200581c51c9 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Fri, 4 May 2018 17:05:14 +0200 Subject: [PATCH] Fix acquire-reboot-lock molly-guard hook to actually keep the lock until shutdown RT#6893 --- modules/debian_org/files/molly-guard/15-acquire-reboot-lock | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/debian_org/files/molly-guard/15-acquire-reboot-lock b/modules/debian_org/files/molly-guard/15-acquire-reboot-lock index ebbac937b..c97861bfa 100644 --- a/modules/debian_org/files/molly-guard/15-acquire-reboot-lock +++ b/modules/debian_org/files/molly-guard/15-acquire-reboot-lock @@ -11,9 +11,8 @@ if ! flock --exclusive -w 0 3; then fi echo "Reboot lock acquired." -ppid="$PPID" ( - while kill -0 "$ppid" 2>/dev/null; do + while dsa-is-shutdown-scheduled; do sleep 1 done ) & -- 2.20.1