comparison src/os_unix.c @ 29220:d6f8b784d0f6 v8.2.5129

patch 8.2.5129: timeout handling is not optimal Commit: https://github.com/vim/vim/commit/1f30caff8b63beda75a5dcd15ffe3e9e818ed483 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 19 14:36:35 2022 +0100 patch 8.2.5129: timeout handling is not optimal Problem: Timeout handling is not optimal. Solution: Avoid setting timeout_flag twice. Adjust the pointer when stopping the regexp timeout. Adjust variable name.
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jun 2022 15:45:02 +0200
parents 0af5fe160e4e
children c7aa0c46acd5
comparison
equal deleted inserted replaced
29219:aad416d6fb3f 29220:d6f8b784d0f6
8305 int ret; 8305 int ret;
8306 8306
8307 // This is really the caller's responsibility, but let's make sure the 8307 // This is really the caller's responsibility, but let's make sure the
8308 // previous timer has been stopped. 8308 // previous timer has been stopped.
8309 stop_timeout(); 8309 stop_timeout();
8310 timeout_flag = FALSE;
8311 8310
8312 if (!timer_created) 8311 if (!timer_created)
8313 { 8312 {
8314 struct sigevent action = {0}; 8313 struct sigevent action = {0};
8315 8314