diff options
author | stas <stas@FreeBSD.org> | 2009-10-12 23:28:22 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2009-10-12 23:28:22 +0800 |
commit | a67fffb73bf8704902bd7df0a10b0a110c8e9c0e (patch) | |
tree | 5437ecd4803102b56ba841e66cb244371a42a9fc /lang | |
parent | 7872f80cbf0942ae460b2166be1d7053aa587b1e (diff) | |
download | freebsd-ports-gnome-a67fffb73bf8704902bd7df0a10b0a110c8e9c0e.tar.gz freebsd-ports-gnome-a67fffb73bf8704902bd7df0a10b0a110c8e9c0e.tar.zst freebsd-ports-gnome-a67fffb73bf8704902bd7df0a10b0a110c8e9c0e.zip |
- Fix SIGINT signal handling.
PR: ports/136804
Submitted by: Emiel van de Laar <gemiel@gmail.com>
Obtained from: ruby-lang SVN
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby19/files/patch-ext_readline_readline.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lang/ruby19/files/patch-ext_readline_readline.c b/lang/ruby19/files/patch-ext_readline_readline.c new file mode 100644 index 000000000000..2f0403124c23 --- /dev/null +++ b/lang/ruby19/files/patch-ext_readline_readline.c @@ -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 |