[Expired for pm-utils (Ubuntu) because there has been no activity for 60
days.]

** Changed in: pm-utils (Ubuntu)
       Status: Incomplete => Expired

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

Title:
  pm-hibernate dies if parent dies upon wake

Status in “pm-utils” package in Ubuntu:
  Expired

Bug description:
  By-the-book behaviour of pm-hibernate/-suspend may cause issues.

  The issue: when waking up, the hooks that were run before sleeping /
  suspending are executed in reverse order as explained on the man page.
  When such a hook (accidently) kills the parent process which triggered
  pm-hibernate/-suspend in the first place, this child process in the
  shape of pm-action is killed alongside the parent (regardless of sudo
  invocation or not).

  A possible solution would be to daemonize the script after wakeup by
  the kernel so that init inherits it and can forget about it after pm-
  action exits.

  First observed on a stock Precise / Oneiric 64 bit installation.

  Steps to reproduce:

  1) Write a hook that calls initctl to restart a service as non-root
  2) Have this service execute pm-hibernate.
  3) Watch pm-action terminate in pm-functions when parent process dies due to 
service restart in hook invocation.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: pm-utils 1.4.1-9
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic x86_64
  ApportVersion: 2.0.1-0ubuntu8
  Architecture: amd64
  Date: Thu Jun 14 17:25:56 2012
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_US:en
   TERM=xterm-256color
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: pm-utils
  UpgradeStatus: Upgraded to precise on 2012-04-26 (48 days ago)

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to