mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-11 20:58:45 +03:00
Merge pull request #2969 from cgwalters/fix-sync-pthreads
deploy: Fix mutex locking for global sync timeout
This commit is contained in:
commit
7f70614a1a
@ -1606,11 +1606,10 @@ static void *
|
||||
sync_in_thread (void *ptr)
|
||||
{
|
||||
SyncData *syncdata = ptr;
|
||||
// Ensure that the caller is blocked waiting
|
||||
g_mutex_lock (&syncdata->mutex);
|
||||
ot_journal_print (LOG_INFO, "Starting global sync()");
|
||||
sync ();
|
||||
ot_journal_print (LOG_INFO, "Completed global sync()");
|
||||
g_mutex_lock (&syncdata->mutex);
|
||||
// Signal success
|
||||
syncdata->success = true;
|
||||
g_cond_broadcast (&syncdata->cond);
|
||||
|
Loading…
x
Reference in New Issue
Block a user