libuv: Restore support for glibc < 2.24

libuv now prefers `posix_spawn` to launch processes on unix.
However, the fork/exec-based implementation on glibc < 2.24
seems to always exit the child with code 127.
This commit is contained in:
Brad King committed 2026-10-07 11:54:39 -04:00
1 parent ef0a053582
commit 1ddc97e901
1 file changed
+2 -1
+2 -1
View File
@@ -537,7 +537,8 @@ static void uv__spawn_init_posix_spawn(void) {
#else
#if !defined(__linux__) && !defined(_AIX) && !defined(__PASE__)
posix_spawn_works = 1;
#elif !defined(__ANDROID__)
#elif !defined(__ANDROID__) && (!defined(__GLIBC__) || \
((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 24))))
pid_t pid;
int status;