wok-next view readline/stuff/patches/readline70-003.patch @ rev 21103

emacs: depends on emacs-common
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 03 11:21:15 2019 +0200 (2019-01-03)
parents
children
line source
1 READLINE PATCH REPORT
2 =====================
4 Readline-Release: 7.0
5 Patch-ID: readline70-003
7 Bug-Reported-by: Frédéric Brière <fbriere@fbriere.net>
8 Bug-Reference-ID: <20170120180724.7ydq7fb2hsp366dj@fabul.fbriere.net>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2017-01/msg00002.html
11 Bug-Description:
13 Readline-7.0 uses pselect(2) to allow readline to handle signals that do not
14 interrupt read(2), such as SIGALRM, before reading another character. The
15 signal mask used in the pselect call did not take into account signals the
16 calling application blocked before calling readline().
18 Patch (apply with `patch -p0'):
20 *** ../readline-7.0-patched/input.c 2016-08-30 10:21:47.000000000 -0400
21 --- input.c 2017-01-23 10:21:56.000000000 -0500
22 ***************
23 *** 514,517 ****
24 --- 514,518 ----
25 #if defined (HAVE_PSELECT)
26 sigemptyset (&empty_set);
27 + sigprocmask (SIG_BLOCK, (sigset_t *)NULL, &empty_set);
28 FD_ZERO (&readfds);
29 FD_SET (fileno (stream), &readfds);
30 *** ../readline-7.0/patchlevel 2013-11-15 08:11:11.000000000 -0500
31 --- patchlevel 2014-03-21 08:28:40.000000000 -0400
32 ***************
33 *** 1,3 ****
34 # Do not edit -- exists only for use by patch
36 ! 2
37 --- 1,3 ----
38 # Do not edit -- exists only for use by patch
40 ! 3