[Rpm-maint] [PATCH] Add API to completely disable librpm's use of Unix signal handlers
walters at verbum.org
Fri Jan 23 03:07:56 UTC 2015
Numerous consumers of librpm use it in a pattern where they're
constructing fresh chroots. For example, rpm-ostree operates this
way, and is used to provide atomic upgrades in concert with rpm.
If the process dies due to SIGINT or another signal, the root can
simply be discarded.
Currently today, rpm-ostree undoes the signal handlers after loading
librpm so that Control-C does what I want, but there's still a race
condition where the interrupt can be lost.
Add an API so callers can disable the behavior.
rpmio/rpmsq.c | 16 ++++++++++++++++
rpmio/rpmsq.h | 2 ++
2 files changed, 18 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2103 bytes
Desc: not available
More information about the Rpm-maint