From cb2647878b8aeaf43a49bb064e85a5e315f86bcd Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Wed, 21 Aug 2019 10:29:25 +0200 Subject: [PATCH] src: Send the stop signal to the entire process group Whenever a tool spawns the editor (e.g. Git), suspending it with ^Z is not enough to be sent back to the calling shell - another ^Z is necessary. Fixes #3061 --- src/ncurses_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 58680546..0b738270 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -622,7 +622,7 @@ Optional NCursesUI::get_next_key() bool mouse_enabled = m_mouse_enabled; enable_mouse(false); - raise(SIGTSTP); // We suspend at this line + kill(0, SIGTSTP); // We suspend at this line check_resize(true); enable_mouse(mouse_enabled);