Merge pull request #386 from schreibubi/timeshiftLockFix

Fix mutex locking in timeshift_filemgr.c
This commit is contained in:
perexg 2014-05-19 16:41:02 +02:00
commit 4907a18ca2

View file

@ -73,6 +73,8 @@ static void* timeshift_reaper_callback ( void *p )
tvhlog(LOG_ERR, "timeshift", "failed to remove %s [e=%s]",
dpath, strerror(errno));
pthread_mutex_lock(&timeshift_reaper_lock);
/* Free memory */
while ((ti = TAILQ_FIRST(&tsf->iframes))) {
TAILQ_REMOVE(&tsf->iframes, ti, link);