From eb86a98f2778fcbc373fd2579f0f6e2c2e3007dc Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Sat, 9 Feb 2008 19:06:15 -0600 Subject: Do not init the logfile until after we take the suspend lock. --- pm/functions.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pm') diff --git a/pm/functions.in b/pm/functions.in index 67764df..2ed009e 100644 --- a/pm/functions.in +++ b/pm/functions.in @@ -199,12 +199,10 @@ pm_main() echo "System does not support $1 sleep." return 1 } - init_logfile "$PM_LOGFILE" take_suspend_lock || exit 1 - # make sure that our locks are unlocked no matter how the script exits trap remove_suspend_lock 0 - + init_logfile "$PM_LOGFILE" rm -f "$INHIBIT" run_hooks sleep "$1" reverse "$2" -- cgit v1.2.3