mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
tuxtxt_cache_lock does not prevent from calling tuxtxt_clear_cache while the cache thread is in the middle of inserting pages, thus leading to a hard-to-reproduce crash when trying to start up tuxtxt. The simplest fix is to use an additional "big hammer" lock arond the whole critical area. Since tuxtxt_clear_cache is only called very seldom, there should be no lock contention problem.