- Fix SIGINT signal handling.
PR: ports/136804 Submitted by: Emiel van de Laar <gemiel@gmail.com> Obtained from: ruby-lang SVN
This commit is contained in:
parent
53ec0f4e53
commit
484e14b422
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242736
@ -198,7 +198,7 @@ RUBY19= "@comment "
|
||||
# Ruby 1.9
|
||||
#
|
||||
RUBY_RELVERSION= 1.9.1
|
||||
RUBY_PORTREVISION= 0
|
||||
RUBY_PORTREVISION= 1
|
||||
RUBY_PORTEPOCH= 1
|
||||
RUBY_PATCHLEVEL= 243
|
||||
|
||||
|
21
lang/ruby19/files/patch-ext_readline_readline.c
Normal file
21
lang/ruby19/files/patch-ext_readline_readline.c
Normal file
@ -0,0 +1,21 @@
|
||||
Index: trunk/ext/readline/readline.c
|
||||
===================================================================
|
||||
--- ext/readline/readline.c (revision 24139)
|
||||
+++ ext/readline/readline.c (revision 24140)
|
||||
@@ -253,6 +253,7 @@
|
||||
if (status) {
|
||||
#if defined HAVE_RL_CLEANUP_AFTER_SIGNAL
|
||||
/* restore terminal mode and signal handler*/
|
||||
+ rl_free_line_state();
|
||||
rl_cleanup_after_signal();
|
||||
#elif defined HAVE_RL_DEPREP_TERM_FUNCTION
|
||||
/* restore terminal mode */
|
||||
@@ -1450,6 +1451,8 @@
|
||||
#elif defined HAVE_RL_EVENT_HOOK
|
||||
rl_event_hook = readline_event;
|
||||
#endif
|
||||
+ rl_catch_signals = 0;
|
||||
+ rl_catch_sigwinch = 0;
|
||||
#ifdef HAVE_RL_CLEAR_SIGNALS
|
||||
rl_clear_signals();
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user