Skip to content
Permalink
Browse files

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)
  • Loading branch information
brammool committed Apr 23, 2018
1 parent a4baf5b commit 6537c421bb626ee92a2487a543e6287d33461bd0
Showing with 6 additions and 3 deletions.
  1. +1 −1 src/os_vms.c
  2. +2 −0 src/version.c
  3. +3 −2 src/vim.h
@@ -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);
@@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1749,
/**/
1748,
/**/
@@ -2154,8 +2154,9 @@ typedef enum {
# define number_width(x) 7
#endif

/* This must come after including proto.h */
#if !(defined(FEAT_MBYTE) && defined(WIN3264))
/* This must come after including proto.h.
* For VMS this is defined in macros.h. */
#if !(defined(FEAT_MBYTE) && defined(WIN3264)) && !defined(VMS)
# define mch_open(n, m, p) open((n), (m), (p))
# define mch_fopen(n, p) fopen((n), (p))
#endif

0 comments on commit 6537c42

Please sign in to comment.
You can’t perform that action at this time.