From d5ea1836333f7a139cab46833feb9d35ede46d6c Mon Sep 17 00:00:00 2001 From: Scott Prager Date: Wed, 17 Sep 2014 22:24:39 -0400 Subject: update mch_suspend Use the portable uv_kill. Don't bother with archaic BeOS. --- src/nvim/os_unix.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index 2595e2e5a2..21c8065642 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -88,17 +88,16 @@ static int did_set_icon = FALSE; */ void mch_suspend(void) { - /* BeOS does have SIGTSTP, but it doesn't work. */ -#if defined(SIGTSTP) && !defined(__BEOS__) +#if defined(SIGTSTP) out_flush(); /* needed to make cursor visible on some systems */ settmode(TMODE_COOK); out_flush(); /* needed to disable mouse on some systems */ - + // Note: compiler defines _REENTRANT when given -pthread flag. # if defined(_REENTRANT) && defined(SIGCONT) sigcont_received = FALSE; # endif - kill(0, SIGTSTP); /* send ourselves a STOP signal */ + uv_kill(0, SIGTSTP); // send ourselves a STOP signal # if defined(_REENTRANT) && defined(SIGCONT) /* * Wait for the SIGCONT signal to be handled. It generally happens -- cgit