summaryrefslogtreecommitdiff
path: root/session-helper
diff options
context:
space:
mode:
authorRobert McQueen <rob@endlessm.com>2017-11-23 12:05:40 +0000
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-23 14:47:12 +0000
commitbdf0f8c554859784a7196f2688c047e212a3cefa (patch)
treecc3791afd0d91d778b873e9b1daa98b4ca613713 /session-helper
parent2b516e5df1efc22e3ac99aa560a3565da743e5c7 (diff)
downloadflatpak-bdf0f8c554859784a7196f2688c047e212a3cefa.tar.gz
session-helper: add comment documenting rationale for two monitors
Closes: #1194 Approved by: pwithnall
Diffstat (limited to 'session-helper')
-rw-r--r--session-helper/flatpak-session-helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/session-helper/flatpak-session-helper.c b/session-helper/flatpak-session-helper.c
index b1f1859b..0bf8f0b1 100644
--- a/session-helper/flatpak-session-helper.c
+++ b/session-helper/flatpak-session-helper.c
@@ -403,6 +403,13 @@ on_name_lost (GDBusConnection *connection,
exit (1);
}
+/*
+ * In the case that the monitored file is a symlink, we set up a separate
+ * GFileMonitor for the real target of the link so that we don't miss updates
+ * to the linked file contents. This is critical in the case of resolv.conf
+ * which on stateless systems is often a symlink to a dyamically-generated
+ * or updated file in /run.
+ */
typedef struct {
const gchar *source;
char *real;