Launchpad has imported 2 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=32210.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2010-12-07T20:02:35+00:00 ariel cornejo wrote:

Created attachment 40891
patch for pm-functions.in

Since 1.4.0, _run_hook calls a log() after running the hook, and thus
loses the hook exit status:

199     hook_ok "$1" && "$@"
200     log ""
201     log -n "$*: " 
202     hook_exit_status $? && LAST_HOOK="${1##*/}" || inhibit 

I attached a simple patch that seems to fix it.

This is important because e.g. a script that unmounts SD/MMC cards
before suspending cannot inhibit it if the card is busy (see
https://help.ubuntu.com/community/AspireOne/Ubuntu9.10?action=recall&rev=69).

Regards,
  Ariel

Reply at: https://bugs.launchpad.net/ubuntu/+source/pm-
utils/+bug/665651/comments/2

------------------------------------------------------------------------
On 2010-12-22T04:18:35+00:00 ariel cornejo wrote:

Umm, I hoped there would be some kind of reply by now. Should I learn
git and try to submit the patch there?

Reply at: https://bugs.launchpad.net/ubuntu/+source/pm-
utils/+bug/665651/comments/3

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/665651

Title:
  pm-utils does not follow requests to inhibit suspend/hibernate from
  scripts in /etc/pm/sleep.d

To manage notifications about this bug go to:
https://bugs.launchpad.net/pm-utils/+bug/665651/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to