diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-01-11 21:12:26 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-11 22:46:51 +0100 |
| commit | e83a9d5d92896cfd6a4a9aa51f3879e47704e607 (patch) | |
| tree | 89f2f1395cf2e9e69d1d2e59f5f46b628d92e00a /ui-curses.c | |
| parent | 3a6788c0d0b50e0cae902cfdc737d1b2624202ba (diff) | |
| download | vis-e83a9d5d92896cfd6a4a9aa51f3879e47704e607.tar.gz vis-e83a9d5d92896cfd6a4a9aa51f3879e47704e607.tar.xz | |
ui: improve editor suspension
Send SIGSTOP to process group. This should fix job control when
launched from a script.
Diffstat (limited to 'ui-curses.c')
| -rw-r--r-- | ui-curses.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
