Mercurial > vim
comparison src/os_vms.c @ 13754:0d199e59a988 v8.0.1749
patch 8.0.1749: VMS: 100% CPU use, redefining mch_open() fails
commit https://github.com/vim/vim/commit/6537c421bb626ee92a2487a543e6287d33461bd0
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 23 20:46:16 2018 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 23 Apr 2018 21:00:07 +0200 |
parents | cec5137d5332 |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
13753:5bc0ef8e60a1 | 13754:0d199e59a988 |
---|---|
782 if (msec == 0) { | 782 if (msec == 0) { |
783 /* immediate time-out; return impatiently */ | 783 /* immediate time-out; return impatiently */ |
784 return 0; | 784 return 0; |
785 } else if (msec < 0) { | 785 } else if (msec < 0) { |
786 /* no time-out; wait on indefinitely */ | 786 /* no time-out; wait on indefinitely */ |
787 continue; | 787 return 1; /* fakeout to force a wait in vms_read() */ |
788 } else { | 788 } else { |
789 /* time-out needs to be checked */ | 789 /* time-out needs to be checked */ |
790 status = sys$gettim(&time_curr); | 790 status = sys$gettim(&time_curr); |
791 if (status != SS$_NORMAL) | 791 if (status != SS$_NORMAL) |
792 return 0; /* error */ | 792 return 0; /* error */ |