Blame SOURCES/polkit-0.112-sigttou-if-bg-job.patch
|
|
7daec7 |
diff --git a/src/programs/pkttyagent.c b/src/programs/pkttyagent.c
|
|
|
7daec7 |
index 3c8d502..acbc3ab 100644
|
|
|
7daec7 |
--- a/src/programs/pkttyagent.c
|
|
|
7daec7 |
+++ b/src/programs/pkttyagent.c
|
|
|
7daec7 |
@@ -262,8 +262,11 @@ main (int argc, char *argv[])
|
|
|
7daec7 |
tty_flags_saved = TRUE;
|
|
|
7daec7 |
}
|
|
|
7daec7 |
|
|
|
7daec7 |
+
|
|
|
7daec7 |
memset (&sa, 0, sizeof (sa));
|
|
|
7daec7 |
sa.sa_handler = &tty_handler;
|
|
|
7daec7 |
+ sigemptyset(&sa.sa_mask);
|
|
|
7daec7 |
+ sigaddset(&sa.sa_mask, SIGTTOU);
|
|
|
7daec7 |
sigaction (SIGTERM, &sa, &savesigterm);
|
|
|
7daec7 |
sigaction (SIGINT, &sa, &savesigint);
|
|
|
7daec7 |
sigaction (SIGTSTP, &sa, &savesigtstp);
|