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:
parent
09c514901d
commit
cb2647878b
|
@ -622,7 +622,7 @@ Optional<Key> NCursesUI::get_next_key()
|
||||||
bool mouse_enabled = m_mouse_enabled;
|
bool mouse_enabled = m_mouse_enabled;
|
||||||
enable_mouse(false);
|
enable_mouse(false);
|
||||||
|
|
||||||
raise(SIGTSTP); // We suspend at this line
|
kill(0, SIGTSTP); // We suspend at this line
|
||||||
|
|
||||||
check_resize(true);
|
check_resize(true);
|
||||||
enable_mouse(mouse_enabled);
|
enable_mouse(mouse_enabled);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user