projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bd41ed
)
connection: close pending incoming FDs on shutdown
author
David Herrmann
<dh.herrmann@googlemail.com>
Thu, 11 Oct 2012 21:37:47 +0000
(23:37 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 15 Oct 2012 20:16:24 +0000
(16:16 -0400)
Same problem as with outgoing FDs. We need to close these on shutdown,
otherwise we leak open file descriptors.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index
7cf645c
..
7c8a191
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-190,6
+190,7
@@
void
wl_connection_destroy(struct wl_connection *connection)
{
close_fds(&connection->fds_out, -1);
+ close_fds(&connection->fds_in, -1);
close(connection->fd);
free(connection);
}