summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-worker.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-07-18 16:40:58 -0400
committerRay Strode <rstrode@redhat.com>2018-07-18 16:43:58 -0400
commitb0d1ca9ebf605abb63b95ef73d56d56a1109002e (patch)
treedbe3fb3f3736468972734252547bcb34722010a0 /daemon/gdm-session-worker.c
parentec2f5a84fc190a6ce0da275067484e89dcc583d9 (diff)
downloadgdm-b0d1ca9ebf605abb63b95ef73d56d56a1109002e.tar.gz
session-worker: unblock SIGUSR1 before PAMwip/rstrode/unblock-sigusr1
Right now we unblock SIGUSR1 just before starting the session, but we should really do it before starting the worker/PAM. This commit fixes that and removes a useless call to set SIGUSR1 back to the default disposition, right before exec (which does the same thing anyway) Closes: https://gitlab.gnome.org/GNOME/gdm/issues/399
Diffstat (limited to 'daemon/gdm-session-worker.c')
-rw-r--r--daemon/gdm-session-worker.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index a0a755c6..c1d89cab 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -2026,8 +2026,6 @@ gdm_session_worker_start_session (GdmSessionWorker *worker,
char *home_dir;
int stdin_fd = -1, stdout_fd = -1, stderr_fd = -1;
gboolean has_journald = FALSE, needs_controlling_terminal = FALSE;
- sigset_t mask;
-
/* Leak the TTY into the session as stdin so that it stays open
* without any races. */
if (worker->priv->session_tty_fd > 0) {
@@ -2148,19 +2146,6 @@ gdm_session_worker_start_session (GdmSessionWorker *worker,
*/
signal (SIGPIPE, SIG_DFL);
- /*
- * Reset SIGUSR1 to default since it was blocked by the manager
- * process for the X server startup handshake
- */
- signal (SIGUSR1, SIG_DFL);
-
- /*
- * Reset signal mask to default since it was altered by the
- * manager process
- */
- sigemptyset (&mask);
- sigprocmask (SIG_SETMASK, &mask, NULL);
-
gdm_session_execute (worker->priv->arguments[0],
worker->priv->arguments,
(char **)