diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2014-11-13 10:34:52 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2014-11-13 10:34:52 +1300 |
commit | e69928aa3be665641965bf75f3776f6c8ca7a489 (patch) | |
tree | d36f29ac248fe73ce9277f171c489c8747395ce2 | |
parent | 3e5fbd1ce59663a4951eb1ba3219059505799a42 (diff) | |
download | lightdm-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.c | 2 |
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) |