[Rpm-maint] [rpm-software-management/rpm] Rip out the atexit handler (#1667)

Demi Marie Obenour notifications at github.com
Wed May 26 16:20:48 UTC 2021


> I'm not sure we can do that, because the point of this handler is to ensure the rpmdb is sane in those scenarios.

There are two problems with this approach:

1. We need to make sure the rpmdb is reasonable even if RPM dies with SIGKILL.  So the atexit handler cannot be essential for correctness.
2. Other threads may be using RPM while one calls exit().  So we can’t actually free any resources in the atexit() handler.

Now that we use SQLite, I imagine that the rpmdb will *always* be in a consistent state.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1667#issuecomment-848912342
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210526/665cecf9/attachment.html>


More information about the Rpm-maint mailing list