Merge pull request #386 from schreibubi/timeshiftLockFix
Fix mutex locking in timeshift_filemgr.c
This commit is contained in:
commit
4907a18ca2
1 changed files with 2 additions and 0 deletions
|
@ -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(×hift_reaper_lock);
|
||||
|
||||
/* Free memory */
|
||||
while ((ti = TAILQ_FIRST(&tsf->iframes))) {
|
||||
TAILQ_REMOVE(&tsf->iframes, ti, link);
|
||||
|
|
Loading…
Add table
Reference in a new issue