diff options
author | Scott Prager <splinterofchaos@gmail.com> | 2014-09-17 22:24:39 -0400 |
---|---|---|
committer | Scott Prager <splinterofchaos@gmail.com> | 2014-11-28 14:27:58 -0500 |
commit | d5ea1836333f7a139cab46833feb9d35ede46d6c (patch) | |
tree | 3fb1f1b21fc4db279c8a10083bcdd36e616357ee /src/nvim/os_unix.c | |
parent | 8d271bb57bdf6e7718da91f58f98cf0da0fe0e71 (diff) | |
download | rneovim-d5ea1836333f7a139cab46833feb9d35ede46d6c.tar.gz rneovim-d5ea1836333f7a139cab46833feb9d35ede46d6c.tar.bz2 rneovim-d5ea1836333f7a139cab46833feb9d35ede46d6c.zip |
update mch_suspend
Use the portable uv_kill.
Don't bother with archaic BeOS.
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r-- | src/nvim/os_unix.c | 7 |
1 files 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 |