From e83a9d5d92896cfd6a4a9aa51f3879e47704e607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 11 Jan 2017 21:12:26 +0100 Subject: ui: improve editor suspension Send SIGSTOP to process group. This should fix job control when launched from a script. --- ui-curses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-curses.c b/ui-curses.c index f087fed..94734d5 100644 --- a/ui-curses.c +++ b/ui-curses.c @@ -833,7 +833,7 @@ static void ui_suspend(Ui *ui) { if (change_colors) undo_palette(); endwin(); - raise(SIGSTOP); + kill(0, SIGSTOP); } static bool ui_getkey(Ui *ui, TermKeyKey *key) { -- cgit v1.2.3