diff options
author | Brad King <brad.king@kitware.com> | 2024-03-31 14:43:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-04-01 13:56:50 (GMT) |
commit | f54ec4e7f9a2d11306568668562246a154213b4f (patch) | |
tree | 84779c9e48a589baf1b82fc878edfaf9f489439e /Utilities/cmlibuv/src | |
parent | af330faaf17f46196d2d2faca8a50e4146d5cc09 (diff) | |
download | CMake-f54ec4e7f9a2d11306568668562246a154213b4f.zip CMake-f54ec4e7f9a2d11306568668562246a154213b4f.tar.gz CMake-f54ec4e7f9a2d11306568668562246a154213b4f.tar.bz2 |
libuv: macos: use posix poll instead of kqueue
Since commit 5420639a8d (cmExecuteProcessCommand: Replace cmsysProcess
with cmUVProcessChain, 2023-06-01, v3.28.0-rc1~138^2~8) we've observed
spurious process hangs in `uv__io_poll` waiting for `kqueue` to deliver
events on macOS.
Issue: #25839
Diffstat (limited to 'Utilities/cmlibuv/src')
-rw-r--r-- | Utilities/cmlibuv/src/unix/darwin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmlibuv/src/unix/darwin.c b/Utilities/cmlibuv/src/unix/darwin.c index 62f04d3..b9c8084 100644 --- a/Utilities/cmlibuv/src/unix/darwin.c +++ b/Utilities/cmlibuv/src/unix/darwin.c @@ -41,6 +41,7 @@ static mach_timebase_info_data_t timebase; typedef unsigned char UInt8; +#ifdef UV_HAVE_KQUEUE int uv__platform_loop_init(uv_loop_t* loop) { loop->cf_state = NULL; @@ -54,6 +55,7 @@ int uv__platform_loop_init(uv_loop_t* loop) { void uv__platform_loop_delete(uv_loop_t* loop) { uv__fsevents_loop_delete(loop); } +#endif static void uv__hrtime_init_once(void) { |