timeshift: Reworked mutex locking in timeshift_filemgr.c
This commit is contained in:
parent
03a69ffec6
commit
cd85e6a8bc
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