1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

timesyncd: add debug logging in case we can't touch /run/systemd/timesync/synchronized

This commit is contained in:
Lennart Poettering 2022-03-18 16:53:46 +01:00
parent 1f129b7fb7
commit 1aa7ca2241

View File

@ -580,7 +580,9 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
(void) manager_save_time_and_rearm(m, dts.realtime);
/* If touch fails, there isn't much we can do. Maybe it'll work next time. */
(void) touch("/run/systemd/timesync/synchronized");
r = touch("/run/systemd/timesync/synchronized");
if (r < 0)
log_debug_errno(r, "Failed to touch /run/systemd/timesync/synchronized, ignoring: %m");
}
/* Save NTP response */