mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-17 18:20:41 +01:00
No longer leak FDs on VT switch.
Modified-by: Povilas Kanapickas <povilas@radix.lt>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/997>
(cherry picked from commit 2631cad85d)
This commit is contained in:
parent
574e0a005f
commit
d54c1e6c44
1 changed files with 6 additions and 0 deletions
|
|
@ -397,6 +397,11 @@ message_filter(DBusConnection * connection, DBusMessage * message, void *data)
|
|||
dbus_error_free(&error);
|
||||
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
|
||||
}
|
||||
|
||||
/*
|
||||
* fd will be received via DBus if and only if pause == 0, so it
|
||||
* only needs to be closed in that code path
|
||||
*/
|
||||
} else
|
||||
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
|
||||
|
||||
|
|
@ -431,6 +436,7 @@ message_filter(DBusConnection * connection, DBusMessage * message, void *data)
|
|||
info->active = TRUE;
|
||||
|
||||
if (pdev) {
|
||||
close(fd);
|
||||
pdev->flags &= ~XF86_PDEV_PAUSED;
|
||||
} else
|
||||
systemd_logind_set_input_fd_for_all_devs(major, minor, fd,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue