mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-06 13:27:09 +00:00
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:
1 parent
ef0a053582
commit
1ddc97e901
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user