mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-11-09 02:48:33 +00:00
24 lines
1.0 KiB
Diff
24 lines
1.0 KiB
Diff
From 4a4298ef78e943d36f3b8d8e78bfa21b1506961e Mon Sep 17 00:00:00 2001
|
|
From: Aman Gupta Karmani <aman@tmm1.net>
|
|
Date: Mon, 12 Oct 2020 13:39:26 -0700
|
|
Subject: [PATCH] time-wait-sync: log errors trying to watch
|
|
/run/systemd/timesync
|
|
|
|
---
|
|
src/time-wait-sync/time-wait-sync.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/time-wait-sync/time-wait-sync.c b/src/time-wait-sync/time-wait-sync.c
|
|
index 96072445f6e..c8ec4850426 100644
|
|
--- a/src/time-wait-sync/time-wait-sync.c
|
|
+++ b/src/time-wait-sync/time-wait-sync.c
|
|
@@ -50,7 +50,7 @@ static void clock_state_release(ClockState *sp) {
|
|
static int clock_state_update(ClockState *sp, sd_event *event);
|
|
|
|
static int update_notify_run_systemd_timesync(ClockState *sp) {
|
|
- sp->run_systemd_timesync_wd = inotify_add_watch(sp->inotify_fd, "/run/systemd/timesync", IN_CREATE|IN_DELETE_SELF);
|
|
+ sp->run_systemd_timesync_wd = inotify_add_watch_and_warn(sp->inotify_fd, "/run/systemd/timesync", IN_CREATE|IN_DELETE_SELF);
|
|
return sp->run_systemd_timesync_wd;
|
|
}
|
|
|