summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2015-03-02 09:15:40 -0500
committerRay Strode <rstrode@redhat.com>2015-03-02 10:05:33 -0500
commit2b02aadfcd4aff9052e425e3292943e99320f4fc (patch)
tree55287483eac4b34d8a711d63757a114762872d50
parent69847b9d92b2135fca9947b3ce17a15d2f5c7420 (diff)
downloadgdm-2b02aadfcd4aff9052e425e3292943e99320f4fc.tar.gz
worker: don't use SIGUSR1 for VT switch signal
That signal is blocked when the worker is forked, because the main daemon uses it to notice when the X server is ready. This commit changes the worker to use real-time signals instead, which are better anyway, since they queue. https://bugzilla.gnome.org/show_bug.cgi?id=745465
-rw-r--r--daemon/gdm-session-worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index 5c881250..ccfa97e6 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -106,8 +106,8 @@
#define MAX_FILE_SIZE 65536
#define MAX_LOGS 5
-#define RELEASE_DISPLAY_SIGNAL SIGUSR1
-#define ACQUIRE_DISPLAY_SIGNAL SIGUSR2
+#define RELEASE_DISPLAY_SIGNAL (SIGRTMAX)
+#define ACQUIRE_DISPLAY_SIGNAL (SIGRTMAX - 1)
enum {
GDM_SESSION_WORKER_STATE_NONE = 0,