Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268820 - sys-power/hibernate-script gpg-agent scriptlet does not work from ACPI event
Summary: sys-power/hibernate-script gpg-agent scriptlet does not work from ACPI event
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-06 15:22 UTC by Neil Bothwick
Modified: 2013-01-12 17:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for ssh_and_gpg_agents scriptlet (hibernate-script-2.0-ssh_and_gpg_agents.patch,494 bytes, patch)
2009-05-06 15:24 UTC, Neil Bothwick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Bothwick 2009-05-06 15:22:56 UTC
The ssh_and_gpg_agents scriptlet fails on GPG when hibernate is called from an ACPI event, like the power button. It generates a list of PIDs with

ps t - | gawk '/gpg-agent --daemon/ {print $1}'

which also gives the PID of the gawk process. The script then fails when it tries too kill this, now non-existent, PID. This patch alters the script to check that a PID still exists before trying to kill it.
Comment 1 Neil Bothwick 2009-05-06 15:24:28 UTC
Created attachment 190510 [details, diff]
Patch for ssh_and_gpg_agents scriptlet
Comment 2 Gef 2009-09-13 11:15:39 UTC
Should'nt this be reported upstream ? Thanks for the patch.
Comment 3 Neil Bothwick 2011-12-08 19:24:42 UTC
I see that 2.0-r4 has exactly the same problem, fixed by the same patch. I'll try reporting upstream but I thought the protocol was for Gentoo users to file bugs here and devs to pass upstream as appropriate.

Incidentally, I had to modify the ebuild to apply the patch because it does not use epatch_user to apply patches in /etc/portage/patches.
Comment 4 Pacho Ramos gentoo-dev 2012-12-16 14:25:19 UTC
This package is now orphan:
http://my.opera.com/pacho/blog/2012/11/27/about-maintainer-needed
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2013-01-12 17:38:18 UTC
Fixed in hibernate-script-2.0-r6