aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-05-27 09:34:40 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-05-27 09:34:40 -0400
commit3dd166b20387607d73fee01507e7c9ddcfa9bcd4 (patch)
tree5647ea22f1e7fd35b56df9893ebfd5717481d857 /src/nvim/misc1.c
parent5a9ad68b258f33ebd7fa0a5da47b308f50f1e5e7 (diff)
parentb2c400b3f2354b2765e1d6f3b5ce4b11f2ab75a3 (diff)
downloadrneovim-3dd166b20387607d73fee01507e7c9ddcfa9bcd4.tar.gz
rneovim-3dd166b20387607d73fee01507e7c9ddcfa9bcd4.tar.bz2
rneovim-3dd166b20387607d73fee01507e7c9ddcfa9bcd4.zip
Merge #2598 'set stdin as "blocking" on exit'
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 3ae3d6e30e..0737caec5d 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -2679,6 +2679,7 @@ void preserve_exit(void)
// Prevent repeated calls into this method.
if (really_exiting) {
+ stream_set_blocking(input_global_fd(), true); //normalize stream (#2598)
exit(2);
}