On Tue, 11 Apr 2006, Pascal Bleser wrote:
The other detail, smart hangs if I do'nt kill the zmd daemon. This is a known "feature", as zmd tries to read the rpmdb as soon as it changes, which is indeed happening, when you install/update packages. Unfortunately there is no other fix than disabling zmd at the moment.
Although it rather seems that zmd is locking the RPM database permanently, right ?
No, it doesn't.
If it's using inotify (or some other similar mechanism, kinda getting lost with this API in the kernel as it's changing with almost every release) on the Berkeley hash files of the RPM database to get notified instantly of changes, why does it have to lock the database ?
If would be sufficient to - - lock - - read - - unlock - - get back to inotify
Or am I missing something ?
If that was the case, smart wouldn't hang - or rather, smart would hang until the RPM database is unlocked, then lock it, do its stuff, and unlock the database.
That's what actually happening, smart hangs while zmd is reading the database, which should be working just fine in theory. But it doesn't :( So, the way to go is just to disable zmd for now. Regards Christoph