summaryrefslogtreecommitdiff
path: root/src/os_vms.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-04-23 20:46:16 +0200
committerBram Moolenaar <Bram@vim.org>2018-04-23 20:46:16 +0200
commit6537c421bb626ee92a2487a543e6287d33461bd0 (patch)
treec0003b0294f921ef3b6bd318bb897201358745d1 /src/os_vms.c
parenta4baf5b32519855bb176a7aa0e9397c137ca890a (diff)
downloadvim-git-6537c421bb626ee92a2487a543e6287d33461bd0.tar.gz
patch 8.0.1749: VMS: 100% CPU use, redefining mch_open() failsv8.0.1749
Problem: VMS: 100% CPU use, redefining mch_open() and mch_fopen() fails. Solution: Do not wait indefinitely in RealWaitForChar(). (Neil Rieck) Do not redefine mch_open() and mch_fopen() on VMS. (Zoltan Arpadffy)
Diffstat (limited to 'src/os_vms.c')
-rw-r--r--src/os_vms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_vms.c b/src/os_vms.c
index 84f84ac71..61db3a80b 100644
--- a/src/os_vms.c
+++ b/src/os_vms.c
@@ -784,7 +784,7 @@ RealWaitForChar(
return 0;
} else if (msec < 0) {
/* no time-out; wait on indefinitely */
- continue;
+ return 1; /* fakeout to force a wait in vms_read() */
} else {
/* time-out needs to be checked */
status = sys$gettim(&time_curr);