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