libuv: Avoid posix_spawn on Solaris

It seems to cause hangs running certain child processes, like `make`.
This commit is contained in:
Brad King committed 2026-10-08 09:01:28 -04:00
1 parent 61158e2377
commit 436a2745dd
1 file changed
+2
+2
View File
@@ -537,6 +537,8 @@ static void uv__spawn_init_posix_spawn(void) {
#elif defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED < 1080
/* posix_spawn on macOS < 10.8 has been observed to cause
kernel panics and/or resource exhaustion. Always use fork. */
#elif defined(__sun__)
/* posix_spawn on Solaris has been observed to cause hangs. */
#else
#if !defined(__linux__) && !defined(_AIX) && !defined(__PASE__)
posix_spawn_works = 1;