mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-27 06:59:51 -05:00
connection: close pending incoming FDs on shutdown
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>
This commit is contained in:
parent
9bd41ed6a9
commit
5bae0650ba
1 changed files with 1 additions and 0 deletions
|
|
@ -190,6 +190,7 @@ void
|
||||||
wl_connection_destroy(struct wl_connection *connection)
|
wl_connection_destroy(struct wl_connection *connection)
|
||||||
{
|
{
|
||||||
close_fds(&connection->fds_out, -1);
|
close_fds(&connection->fds_out, -1);
|
||||||
|
close_fds(&connection->fds_in, -1);
|
||||||
close(connection->fd);
|
close(connection->fd);
|
||||||
free(connection);
|
free(connection);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue