Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#56756 - Resetting signal handlers prior to calling hooks

Attached to Project: Pacman
Opened by S├ębastien Luttringer (seblu) - Sunday, 17 December 2017, 16:36 GMT
Task Type Bug Report
Category General
Status Assigned
Assigned To Andrew Gregory (andrewgregory)
Architecture All
Severity Medium
Priority Normal
Reported Version 5.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Summary and Info:

I'm quoting Andrew Gregory from  FS#49816 :

- Hooks are run with SIGPIPE ignored which causes '... | grep -q ...' in the dkms script to print the error when the grep exits early and the echo receives EPIPE.
- does not ignore SIGPIPE, GPGME does. I need to look into resetting signal handlers prior to calling the hook.
- libalpm uses GPGME for signature checking. GPGME uses pipes to communicate with external processes. When GPGME is initialized it sets SIGPIPE to be ignored, so that it can gracefully handle EPIPE rather than have the entire application die.

This bug is to track fix into pacman, and when I can remove the workaround in dkms.