summaryrefslogtreecommitdiff
path: root/x11/gdm/files/patch-daemon_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gdm/files/patch-daemon_main.c')
-rw-r--r--x11/gdm/files/patch-daemon_main.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11/gdm/files/patch-daemon_main.c b/x11/gdm/files/patch-daemon_main.c
new file mode 100644
index 000000000000..abdcc0604e97
--- /dev/null
+++ b/x11/gdm/files/patch-daemon_main.c
@@ -0,0 +1,28 @@
+--- daemon/main.c.orig 2022-01-12 14:15:56 UTC
++++ daemon/main.c
+@@ -289,6 +289,7 @@ is_debug_set (void)
+ return debug;
+ }
+
++#ifdef HAVE_SIGWAITINFO
+ /* SIGUSR1 is used by the X server to tell us that we're ready, so
+ * block it. We'll unblock it in the worker thread in gdm-server.c
+ */
+@@ -301,6 +302,7 @@ block_sigusr1 (void)
+ sigaddset (&mask, SIGUSR1);
+ sigprocmask (SIG_BLOCK, &mask, NULL);
+ }
++#endif
+
+ int
+ main (int argc,
+@@ -321,7 +323,9 @@ main (int argc,
+ { NULL }
+ };
+
++#ifdef HAVE_SIGWAITINFO
+ block_sigusr1 ();
++#endif
+
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);