Traditionally rpm-related daemons have been watching for changes in 
/var/lib/rpm/Packages file, but hardcoded paths were always ugly and no longer 
feasible at all because of multiple supported backends with different file 
names and semantics over them.

We recently added rpmdbCookie() API for checking if the database has changed, 
and rpmdbStat() and rpmdbFStat() go to the same direction as well, but none of 
these serve the daemon case particularly well as it should not be necessary to 
poll.

I know sqlite supports notification hooks, and IIRC BDB does too. I think ndb 
doesn't keep track of who has the db open and no idea how easy/hard 
implementing that would be. @mlschroe, thoughts ?

-- 
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/issues/1124
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to