diff options
Diffstat (limited to 'src/nvim/misc1.c')
| -rw-r--r-- | src/nvim/misc1.c | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 137de84953..f7ee2950ef 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -2622,7 +2622,10 @@ void preserve_exit(void)    // Prevent repeated calls into this method.    if (really_exiting) { -    stream_set_blocking(input_global_fd(), true);  //normalize stream (#2598) +    if (input_global_fd() >= 0) { +      // normalize stream (#2598) +      stream_set_blocking(input_global_fd(), true); +    }      exit(2);    }  | 
