glibc/sysdeps
Aurelien Jarno 6fd215d6ae posix: fix system when a child cannot be created [BZ #32450]
POSIX states that "if a child process cannot be created, or if the
termination status for the command language interpreter cannot be
obtained, system() shall return -1 and set errno to indicate the error."

In the glibc implementation it could happen when posix_spawn fails,
which happens when the underlying fork, vfork, or clone call fails. They
could fail with EAGAIN and ENOMEM.

Resolves: BZ #32450
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2024-12-20 22:57:06 +01:00
..
aarch64 aarch64: Regenerate ulps 2024-12-20 07:12:30 +01:00
alpha math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
arc math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
arm elf: Introduce is_rtld_link_map 2024-12-20 15:52:57 +01:00
csky math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
generic elf: Move _dl_rtld_map, _dl_rtld_audit_state out of GL 2024-12-20 15:52:57 +01:00
gnu sysdeps: Re-flow and sort multiline gnu/Makefile definitions 2024-08-07 11:02:03 -03:00
hppa math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
htl htl: move pthread_sigmask into libc. 2024-12-14 23:13:14 +01:00
hurd hurd: Move internal functions to internal header 2024-03-23 22:43:07 +01:00
i386 i386: Regenerate ulps 2024-12-20 12:40:17 +01:00
ieee754 math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
loongarch math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
m68k math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
mach htl: move pthread_sigmask into libc. 2024-12-14 23:13:14 +01:00
microblaze math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
mips elf: Introduce is_rtld_link_map 2024-12-20 15:52:57 +01:00
nptl linux: Add support for getrandom vDSO 2024-11-12 14:42:12 -03:00
or1k math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
posix posix: fix system when a child cannot be created [BZ #32450] 2024-12-20 22:57:06 +01:00
powerpc elf: Introduce is_rtld_link_map 2024-12-20 15:52:57 +01:00
pthread Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
riscv math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
s390 math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
sh elf: Introduce is_rtld_link_map 2024-12-20 15:52:57 +01:00
sparc math: Use tanhf from CORE-MATH 2024-12-18 17:24:43 -03:00
unix Add F_CREATED_QUERY from Linux 6.12 to bits/fcntl-linux.h 2024-12-20 11:47:33 +00:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
x86 elf: Introduce is_rtld_link_map 2024-12-20 15:52:57 +01:00
x86_64 Fix elf: Introduce is_rtld_link_map [BZ #32488] 2024-12-21 04:36:18 +08:00