Comment 2 for bug 665651

Revision history for this message
Peter Wu (lekensteyn) wrote :

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