diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-02-21 20:28:46 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-02-21 20:28:46 -0600 |
commit | f33864caecfea67be95abf0719e96861d6c243b3 (patch) | |
tree | d49a35eca3e5089fda17e34b0773ec37bb139e99 /src | |
parent | b8ccc1c4cc2c5415eb57cf9a0b05218c24e4914d (diff) |
Added back the comment explaining the trap statement.
Diffstat (limited to 'src')
-rw-r--r-- | src/pm-action.in | 3 |
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" |