Merge pull request #2521 from cgwalters/syncfs-only-log
deploy: Also log to journal if we time out global sync()
This commit is contained in:
commit
b9f6632b70
|
|
@ -1647,8 +1647,11 @@ full_system_sync (OstreeSysroot *self,
|
||||||
while (!syncdata->success)
|
while (!syncdata->success)
|
||||||
{
|
{
|
||||||
if (!g_cond_wait_until (&syncdata->cond, &syncdata->mutex, end_time))
|
if (!g_cond_wait_until (&syncdata->cond, &syncdata->mutex, end_time))
|
||||||
|
{
|
||||||
|
ot_journal_print (LOG_INFO, "Timed out waiting for global sync()");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
g_mutex_unlock (&syncdata->mutex);
|
g_mutex_unlock (&syncdata->mutex);
|
||||||
sync_data_unref (syncdata);
|
sync_data_unref (syncdata);
|
||||||
// We can't join the thread here, for two reasons. First, the whole
|
// We can't join the thread here, for two reasons. First, the whole
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue