summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/kmscon/files/kmscon-SIGUNUSED.patch')
-rw-r--r--sys-apps/kmscon/files/kmscon-SIGUNUSED.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-apps/kmscon/files/kmscon-SIGUNUSED.patch b/sys-apps/kmscon/files/kmscon-SIGUNUSED.patch
new file mode 100644
index 00000000000..dc69f7700c6
--- /dev/null
+++ b/sys-apps/kmscon/files/kmscon-SIGUNUSED.patch
@@ -0,0 +1,14 @@
+diff -ur kmscon-8/src/pty.c kmscon-8.new/src/pty.c
+--- kmscon-8/src/pty.c 2018-01-10 09:03:09.477962638 -0600
++++ kmscon-8.new/src/pty.c 2018-01-10 09:04:21.620658836 -0600
+@@ -299,8 +299,10 @@
+ if (ret)
+ log_warn("cannot reset blocked signals: %m");
+
++ #ifdef SIGUNUSED
+ for (i = 1; i < SIGUNUSED; ++i)
+ signal(i, SIG_DFL);
++ #endif
+
+ ret = grantpt(master);
+ if (ret < 0) {