Files
recycled-ni-neutrino/lib/libtuxtxt
Stefan Seyfried b3577833ef tuxtxt: fix race condition in tuxtxt_clear_cache()
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.


Origin commit data
------------------
Commit: 9af56e1852
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-07-15 (Sun, 15 Jul 2012)
2012-07-15 13:19:44 +02:00
..
2011-07-23 14:08:55 +00:00
2012-04-17 19:33:52 +02:00
2011-01-25 17:22:38 +00:00
2010-03-15 20:49:03 +00:00