diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-02-02 21:56:47 -0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2020-02-02 22:14:40 -0800 |
commit | efa5af904387d8ece68c84a568d60e071350c6cb (patch) | |
tree | e52c54ac162743f9481d63b86d61d2818f24d164 /src/nvim/os_unix.c | |
parent | d1d5f5103e2225749f31aa918a17089082029eae (diff) | |
download | rneovim-efa5af904387d8ece68c84a568d60e071350c6cb.tar.gz rneovim-efa5af904387d8ece68c84a568d60e071350c6cb.tar.bz2 rneovim-efa5af904387d8ece68c84a568d60e071350c6cb.zip |
refactor: rename mch_exit => os_exit
- No code changes
- Move it to main.c
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r-- | src/nvim/os_unix.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index 847e342ff1..be4bd9709b 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -72,28 +72,3 @@ void mch_free_acl(vim_acl_T aclent) return; } #endif - -void mch_exit(int r) - FUNC_ATTR_NORETURN -{ - exiting = true; - - ui_flush(); - ui_call_stop(); - ml_close_all(true); // remove all memfiles - - if (!event_teardown() && r == 0) { - r = 1; // Exit with error if main_loop did not teardown gracefully. - } - if (input_global_fd() >= 0) { - stream_set_blocking(input_global_fd(), true); // normalize stream (#2598) - } - - ILOG("Nvim exit: %d", r); - -#ifdef EXITFREE - free_all_mem(); -#endif - - exit(r); -} |