[gdm/no-udev-after-timeout] local-display-factory: Stop listening to udev events after timeout
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/no-udev-after-timeout] local-display-factory: Stop listening to udev events after timeout
- Date: Mon, 21 Mar 2022 14:38:11 +0000 (UTC)
commit 6898b47901c408aa9b3592130578a86c5c7e15e1
Author: Ray Strode <rstrode redhat com>
Date: Mon Mar 21 10:36:50 2022 -0400
local-display-factory: Stop listening to udev events after timeout
At the moment we still listen for udev events after our self imposed
graphics timeout.
This commit fixes that.
daemon/gdm-local-display-factory.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/daemon/gdm-local-display-factory.c b/daemon/gdm-local-display-factory.c
index 7de7b99cf..41c3f4fa0 100644
--- a/daemon/gdm-local-display-factory.c
+++ b/daemon/gdm-local-display-factory.c
@@ -721,6 +721,13 @@ on_seat0_graphics_check_timeout (gpointer user_data)
factory->seat0_graphics_check_timeout_id = 0;
+ /* No more waiting on udev, times up.
+ */
+ if (factory->uevent_handler_id != 0) {
+ g_signal_handler_disconnect (factory->gudev_client, factory->uevent_handler_id);
+ factory->uevent_handler_id = 0;
+ }
+
/* Simply try to re-add seat0. If it is there already (i.e. CanGraphical
* turned TRUE, then we'll find it and it will not be created again).
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]