summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-11-13 10:34:52 +1300
committerRobert Ancell <robert.ancell@canonical.com>2014-11-13 10:34:52 +1300
commite69928aa3be665641965bf75f3776f6c8ca7a489 (patch)
treed36f29ac248fe73ce9277f171c489c8747395ce2
parent3e5fbd1ce59663a4951eb1ba3219059505799a42 (diff)
downloadlightdm-git-e69928aa3be665641965bf75f3776f6c8ca7a489.tar.gz
Close session pipe when child process exits - this was leaking file descriptors for each login / authentication
-rw-r--r--src/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 0ef7f194..e8b5aadd 100644
--- a/src/session.c
+++ b/src/session.c
@@ -590,6 +590,8 @@ session_finalize (GObject *object)
if (self->priv->pid)
kill (self->priv->pid, SIGKILL);
+ close (self->priv->to_child_input);
+ close (self->priv->from_child_output);
if (self->priv->from_child_channel)
g_io_channel_unref (self->priv->from_child_channel);
if (self->priv->from_child_watch)