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
This commit is contained in:
Frank LENORMAND 2019-08-21 10:29:25 +02:00
parent 09c514901d
commit cb2647878b

View File

@ -622,7 +622,7 @@ Optional<Key> 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);