summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fe-text/term-curses.c2
-rw-r--r--src/fe-text/term-terminfo.c4
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();
}