hook_exit_status relies on the last exit code, but the function `log()` always returns 0.
The log lines adds something like:
"/usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate:
and hook_exit_status:
success.
Shouldn't the log lines be moved to hook_exit_status? Otherwise, the exitcode should be stored in a variable and applied to hook_exit_code as described in the bug report.
This bug does not occur at Debians pm-utils package, there are no log lines between hook_ok and hook_exit_code
hook_exit_status relies on the last exit code, but the function `log()` always returns 0.
The log lines adds something like: pm-utils/ sleep.d/ 000kernel- change hibernate hibernate:
"/usr/lib/
and hook_exit_status:
success.
Shouldn't the log lines be moved to hook_exit_status? Otherwise, the exitcode should be stored in a variable and applied to hook_exit_code as described in the bug report.
This bug does not occur at Debians pm-utils package, there are no log lines between hook_ok and hook_exit_code