diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2005-07-17 16:41:23 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-07-17 16:41:23 +0000 |
commit | 181f00c15e261f2dd2608891280f54854ec2da38 (patch) | |
tree | bce480f4a35787c31488a42e7dca472edbd490ef /src | |
parent | 9d609752be72d093c942e53064333440b30105e5 (diff) | |
download | irssi-181f00c15e261f2dd2608891280f54854ec2da38.zip |
Handle ^Z better (debian/patches/03sigtstp.dpatch by David Pashley, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177108)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3864 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/term-curses.c | 2 | ||||
-rw-r--r-- | src/fe-text/term-terminfo.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/term-curses.c b/src/fe-text/term-curses.c index 63db46e5..b147e7ab 100644 --- a/src/fe-text/term-curses.c +++ b/src/fe-text/term-curses.c @@ -362,7 +362,7 @@ void term_refresh(TERM_WINDOW *window) void term_stop(void) { term_deinit_int(); - kill(getpid(), SIGSTOP); + kill(getpid(), SIGTSTP); term_init_int(); irssi_redraw(); } diff --git a/src/fe-text/term-terminfo.c b/src/fe-text/term-terminfo.c index 2d5c4426..21591889 100644 --- a/src/fe-text/term-terminfo.c +++ b/src/fe-text/term-terminfo.c @@ -543,10 +543,10 @@ void term_attach(FILE *in, FILE *out) void term_stop(void) { if (term_detached) { - kill(getpid(), SIGSTOP); + kill(getpid(), SIGTSTP); } else { terminfo_stop(current_term); - kill(getpid(), SIGSTOP); + kill(getpid(), SIGTSTP); terminfo_cont(current_term); irssi_redraw(); } |