summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/readline/readline/readline82-005.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/readline/readline/readline82-005.patch')
-rw-r--r--meta/recipes-core/readline/readline/readline82-005.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-core/readline/readline/readline82-005.patch b/meta/recipes-core/readline/readline/readline82-005.patch
new file mode 100644
index 0000000000..69c2e4f77a
--- /dev/null
+++ b/meta/recipes-core/readline/readline/readline82-005.patch
@@ -0,0 +1,53 @@
1 READLINE PATCH REPORT
2 =====================
3
4Readline-Release: 8.2
5Patch-ID: readline82-005
6
7Bug-Reported-by: Simon Marchi <simon.marchi@polymtl.ca>
8Bug-Reference-ID:
9Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2022-09/msg00005.html
10
11Bug-Description:
12
13If an application is using readline in callback mode, and a signal arrives
14after readline checks for it in rl_callback_read_char() but before it
15restores the application's signal handlers, it won't get processed until the
16next time the application calls rl_callback_read_char(). Readline needs to
17check for and resend any pending signals after restoring the application's
18signal handlers.
19
20Patch (apply with `patch -p0'):
21
22Upstream-Status: Submitted [https://ftp.gnu.org/gnu/readline/readline-8.2-patches/]
23Signed-off-by: Khem Raj <raj.khem@gmail.com>
24
25*** ../readline-8.2-patched/callback.c 2022-04-29 12:02:56.000000000 -0400
26--- callback.c 2022-10-11 10:59:06.000000000 -0400
27***************
28*** 116,120 ****
29 do { \
30 if (rl_persistent_signal_handlers == 0) \
31! rl_clear_signals (); \
32 return; \
33 } while (0)
34--- 116,123 ----
35 do { \
36 if (rl_persistent_signal_handlers == 0) \
37! { \
38! rl_clear_signals (); \
39! if (_rl_caught_signal) _rl_signal_handler (_rl_caught_signal); \
40! } \
41 return; \
42 } while (0)
43*** ../readline-8.2/patchlevel 2013-11-15 08:11:11.000000000 -0500
44--- patchlevel 2014-03-21 08:28:40.000000000 -0400
45***************
46*** 1,3 ****
47 # Do not edit -- exists only for use by patch
48
49! 4
50--- 1,3 ----
51 # Do not edit -- exists only for use by patch
52
53! 5