diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-05-25 14:13:18 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-05-27 09:34:04 -0400 |
commit | 4219b69145f13e95eadb5a666cb02b482bdd395b (patch) | |
tree | 5684a6cb585e60372d41144a4ae13eee8aaab710 /src/nvim/os_unix.c | |
parent | 8a782f1699e2a59a3f3e91f6d7c35a3312b82b41 (diff) | |
download | rneovim-4219b69145f13e95eadb5a666cb02b482bdd395b.tar.gz rneovim-4219b69145f13e95eadb5a666cb02b482bdd395b.tar.bz2 rneovim-4219b69145f13e95eadb5a666cb02b482bdd395b.zip |
input: stream_set_blocking(): libuv impl
- Create a private libuv loop instead of re-using uv_default_loop(), to
avoid conflict[1] with existing watcher(s) on the fd.
- Expose the global "input" fd as a getter instead of a mutable global.
[1] .deps/build/src/libuv/src/unix/core.c:833:
uv__io_stop: Assertion `loop->watchers[w->fd] == w' failed.
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r-- | src/nvim/os_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index b2d5bae477..ccd0073db1 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -181,6 +181,7 @@ void mch_exit(int r) ml_close_all(TRUE); /* remove all memfiles */ event_teardown(); + stream_set_blocking(input_global_fd(), true); // normalize stream (#2598) #ifdef EXITFREE free_all_mem(); |