summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-03-11 13:10:35 +1300
committerRobert Ancell <robert.ancell@canonical.com>2014-03-11 13:10:35 +1300
commit0b91d9e1d3882b7891d775db09f47db526263ae0 (patch)
tree7a2cfb4db3f4cd8a8cc3d2d8e26b466c2dcbd86d
parent40d4c79278f27290293f8be74062580fced206ad (diff)
downloadlightdm-git-0b91d9e1d3882b7891d775db09f47db526263ae0.tar.gz
Ensure X authority is written before X server is started
-rw-r--r--src/x-authority.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/x-authority.c b/src/x-authority.c
index 9f276204..1b18ab0e 100644
--- a/src/x-authority.c
+++ b/src/x-authority.c
@@ -345,6 +345,7 @@ x_authority_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename,
}
g_list_free (records);
+ fsync (output_fd);
close (output_fd);
if (!result)