summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-02-21 20:28:46 -0600
committerVictor Lowther <victor.lowther@gmail.com>2008-02-21 20:28:46 -0600
commitf33864caecfea67be95abf0719e96861d6c243b3 (patch)
treed49a35eca3e5089fda17e34b0773ec37bb139e99 /src
parentb8ccc1c4cc2c5415eb57cf9a0b05218c24e4914d (diff)
Added back the comment explaining the trap statement.
Diffstat (limited to 'src')
-rw-r--r--src/pm-action.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pm-action.in b/src/pm-action.in
index d9085d7..990f03c 100644
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -101,10 +101,11 @@ esac
export PM_CMDLINE="$@"
take_suspend_lock || exit 1
+# make sure we release the lock no matter how we exit
trap remove_suspend_lock 0
init_logfile "${PM_LOGFILE}"
rm -f "${INHIBIT}"
-run_hooks sleep $ACTION
+run_hooks sleep "$ACTION"
"do_$ACTION"
reverse "$REVERSE"