summaryrefslogtreecommitdiffstats
path: root/debian/patches/readline70-003.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:18:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:18:09 +0000
commit94699d7e8b4fed22ac9d24b7f2a3a28c282424e9 (patch)
treef5b77c68cf16faa6d133528d5af9daac899ba009 /debian/patches/readline70-003.diff
parentAdding upstream version 7.0. (diff)
downloadreadline-94699d7e8b4fed22ac9d24b7f2a3a28c282424e9.tar.xz
readline-94699d7e8b4fed22ac9d24b7f2a3a28c282424e9.zip
Adding debian version 7.0-5.debian/7.0-5debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/readline70-003.diff')
-rw-r--r--debian/patches/readline70-003.diff38
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/readline70-003.diff b/debian/patches/readline70-003.diff
new file mode 100644
index 0000000..44c1539
--- /dev/null
+++ b/debian/patches/readline70-003.diff
@@ -0,0 +1,38 @@
+ READLINE PATCH REPORT
+ =====================
+
+Readline-Release: 7.0
+Patch-ID: readline70-003
+
+Bug-Reported-by: Frédéric Brière <fbriere@fbriere.net>
+Bug-Reference-ID: <20170120180724.7ydq7fb2hsp366dj@fabul.fbriere.net>
+Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2017-01/msg00002.html
+
+Bug-Description:
+
+Readline-7.0 uses pselect(2) to allow readline to handle signals that do not
+interrupt read(2), such as SIGALRM, before reading another character. The
+signal mask used in the pselect call did not take into account signals the
+calling application blocked before calling readline().
+
+Index: b/input.c
+===================================================================
+--- a/input.c
++++ b/input.c
+@@ -513,6 +513,7 @@ rl_getc (stream)
+ result = 0;
+ #if defined (HAVE_PSELECT)
+ sigemptyset (&empty_set);
++ sigprocmask (SIG_BLOCK, (sigset_t *)NULL, &empty_set);
+ FD_ZERO (&readfds);
+ FD_SET (fileno (stream), &readfds);
+ result = pselect (fileno (stream) + 1, &readfds, NULL, NULL, NULL, &empty_set);
+Index: b/patchlevel
+===================================================================
+--- a/patchlevel
++++ b/patchlevel
+@@ -1,3 +1,3 @@
+ # Do not edit -- exists only for use by patch
+
+-2
++3