diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-17 15:17:10 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-17 15:17:10 +0100 |
commit | 616592e0816d2d9f893fcd95e3e1e0fbc5893168 (patch) | |
tree | f832a0c1dbe16fcbd944e4b735829279e75ea49d /src/proto/os_unix.pro | |
parent | 5ea38d1e7fd597ffde13b292d43e12747f20e97f (diff) |
patch 8.2.5115: search timeout is overrun with some patternsv8.2.5115
Problem: Search timeout is overrun with some patterns.
Solution: Check for timeout in more places. Make the flag volatile and
atomic. Use assert_inrange() to see what happened.
Diffstat (limited to 'src/proto/os_unix.pro')
-rw-r--r-- | src/proto/os_unix.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/os_unix.pro b/src/proto/os_unix.pro index 268f3bfb65..a8e961b375 100644 --- a/src/proto/os_unix.pro +++ b/src/proto/os_unix.pro @@ -87,6 +87,6 @@ int xsmp_handle_requests(void); void xsmp_init(void); void xsmp_close(void); void stop_timeout(void); -const int *start_timeout(long msec); +volatile int *start_timeout(long msec); void delete_timer(void); /* vim: set ft=c : */ |