4c6f59cd248def918718d7643c5e1470d38701c9
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / readline / 0007-patchlevel-7.patch
1 From http://ftp.gnu.org/pub/gnu/readline/readline-6.3-patches/readline63-007
2
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
4
5                            READLINE PATCH REPORT
6                            =====================
7
8 Readline-Release: 6.3
9 Patch-ID: readline63-007
10
11 Bug-Reported-by:        John Lenton
12 Bug-Reference-ID:
13 Bug-Reference-URL:      https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1317476
14
15 Bug-Description:
16
17 Readline should allow SIGALRM and SIGVTALRM (if available) to `interrupt'
18 rl_getc and cause the handler to run when not in a signal handling context.
19
20 Patch (apply with `patch -p0'):
21
22 *** a/readline-6.3-patched/input.c      2014-01-10 15:07:08.000000000 -0500
23 --- b/input.c   2014-05-30 16:20:56.000000000 -0400
24 ***************
25 *** 535,540 ****
26 --- 538,551 ----
27         else if (_rl_caught_signal == SIGHUP || _rl_caught_signal == SIGTERM)
28         return (RL_ISSTATE (RL_STATE_READCMD) ? READERR : EOF);
29 +       /* keyboard-generated signals of interest */
30         else if (_rl_caught_signal == SIGINT || _rl_caught_signal == SIGQUIT)
31           RL_CHECK_SIGNALS ();
32 +       /* non-keyboard-generated signals of interest */
33 +       else if (_rl_caught_signal == SIGALRM
34 + #if defined (SIGVTALRM)
35 +               || _rl_caught_signal == SIGVTALRM
36 + #endif
37 +             )
38 +         RL_CHECK_SIGNALS ();
39   
40         if (rl_signal_event_hook)
41 *** a/readline-6.3/patchlevel   2013-11-15 08:11:11.000000000 -0500
42 --- b/patchlevel        2014-03-21 08:28:40.000000000 -0400
43 ***************
44 *** 1,3 ****
45   # Do not edit -- exists only for use by patch
46   
47 ! 6
48 --- 1,3 ----
49   # Do not edit -- exists only for use by patch
50   
51 ! 7