summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shm/dconf-shm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shm/dconf-shm.c b/shm/dconf-shm.c
index e47e377..d291305 100644
--- a/shm/dconf-shm.c
+++ b/shm/dconf-shm.c
@@ -133,6 +133,9 @@ dconf_shm_flag (const gchar *name)
* don't sync up their filesystem cache with mmap()ed regions.
*
* Using mmap() works everywhere.
+ *
+ * See https://bugzilla.gnome.org/show_bug.cgi?id=687334 about
+ * why we need to have PROT_READ even though we only write.
*/
shm = mmap (NULL, 1, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
g_assert (shm != MAP_FAILED);