- 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:
Stanislav Sedov 2009-10-12 15:28:22 +00:00
parent 53ec0f4e53
commit 484e14b422
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242736
2 changed files with 22 additions and 1 deletions

View File

@ -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

View 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