patch 8.0.1749: VMS: 100% CPU use, redefining mch_open() fails
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)
diff --git a/src/os_vms.c b/src/os_vms.c
index 84f84ac..61db3a8 100644
--- a/src/os_vms.c
+++ b/src/os_vms.c
@@ -784,7 +784,7 @@
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);