summaryrefslogtreecommitdiff
path: root/src/lightdm.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2012-03-05 11:23:32 +1100
committerRobert Ancell <robert.ancell@canonical.com>2012-03-05 11:23:32 +1100
commit457e99f08bba531f8452894a76306dee92fa6393 (patch)
tree4e16dc4fccfe1d7158898f613a9461677d712680 /src/lightdm.c
parent5f146e0db50357c8cd3630834a090f1ec33b083a (diff)
downloadlightdm-457e99f08bba531f8452894a76306dee92fa6393.tar.gz
Stop file descriptors leaking into the session processes
Diffstat (limited to 'src/lightdm.c')
-rw-r--r--src/lightdm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lightdm.c b/src/lightdm.c
index 4bc5c0c1..e2b9f8d2 100644
--- a/src/lightdm.c
+++ b/src/lightdm.c
@@ -124,6 +124,7 @@ log_init (void)
g_free (log_dir);
log_fd = open (path, O_WRONLY | O_CREAT | O_TRUNC, 0600);
+ fcntl (log_fd, F_SETFD, FD_CLOEXEC);
g_log_set_default_handler (log_cb, NULL);
g_debug ("Logging to %s", path);