linux: Fix posix_spawn return code if clone fails (BZ#29109)
This commit is contained in:
parent
0fee5f6876
commit
09f4240df1
@ -66,7 +66,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
Name: glibc
|
Name: glibc
|
||||||
Version: 2.34
|
Version: 2.34
|
||||||
Release: 79
|
Release: 80
|
||||||
Summary: The GNU libc libraries
|
Summary: The GNU libc libraries
|
||||||
License: %{all_license}
|
License: %{all_license}
|
||||||
URL: http://www.gnu.org/software/glibc/
|
URL: http://www.gnu.org/software/glibc/
|
||||||
@ -219,6 +219,7 @@ Patch131: nptl-Fix-pthread_cancel-cancelhandling-atomic-operat.patch
|
|||||||
Patch132: elf-Fix-initial-exec-TLS-access-on-audit-modules-BZ-.patch
|
Patch132: elf-Fix-initial-exec-TLS-access-on-audit-modules-BZ-.patch
|
||||||
Patch133: posix-glob.c-update-from-gnulib.patch
|
Patch133: posix-glob.c-update-from-gnulib.patch
|
||||||
Patch134: linux-Fix-fchmodat-with-AT_SYMLINK_NOFOLLOW-for-64-b.patch
|
Patch134: linux-Fix-fchmodat-with-AT_SYMLINK_NOFOLLOW-for-64-b.patch
|
||||||
|
Patch135: linux-Fix-posix_spawn-return-code-if-clone-fails-BZ-.patch
|
||||||
|
|
||||||
Patch9000: turn-default-value-of-x86_rep_stosb_threshold_form_2K_to_1M.patch
|
Patch9000: turn-default-value-of-x86_rep_stosb_threshold_form_2K_to_1M.patch
|
||||||
Patch9001: delete-no-hard-link-to-avoid-all_language-package-to.patch
|
Patch9001: delete-no-hard-link-to-avoid-all_language-package-to.patch
|
||||||
@ -1387,6 +1388,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 7 2022 Qingqing Li <liqingqing3@huawei.com> - 2.34-80
|
||||||
|
- linux: Fix posix_spawn return code if clone fails (BZ#29109)
|
||||||
|
|
||||||
* Thu May 05 2022 jiangheng <jiangheng14@huawei.com> - 2.34-79
|
* Thu May 05 2022 jiangheng <jiangheng14@huawei.com> - 2.34-79
|
||||||
- restore nscd
|
- restore nscd
|
||||||
|
|
||||||
|
|||||||
28
linux-Fix-posix_spawn-return-code-if-clone-fails-BZ-.patch
Normal file
28
linux-Fix-posix_spawn-return-code-if-clone-fails-BZ-.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 71e2a681f18f617ab962bf8a139bd86d4d440e22 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
||||||
|
Date: Mon, 2 May 2022 12:39:43 -0300
|
||||||
|
Subject: [PATCH] linux: Fix posix_spawn return code if clone fails (BZ#29109)
|
||||||
|
|
||||||
|
The __clone_internal returns the error on errno.
|
||||||
|
|
||||||
|
Checked on x86_64-linux-gnu.
|
||||||
|
---
|
||||||
|
sysdeps/unix/sysv/linux/spawni.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/spawni.c
|
||||||
|
index d703485..d6f5ca8 100644
|
||||||
|
--- a/sysdeps/unix/sysv/linux/spawni.c
|
||||||
|
+++ b/sysdeps/unix/sysv/linux/spawni.c
|
||||||
|
@@ -409,7 +409,7 @@ __spawnix (pid_t * pid, const char *file,
|
||||||
|
__waitpid (new_pid, NULL, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
- ec = -new_pid;
|
||||||
|
+ ec = errno;
|
||||||
|
|
||||||
|
__munmap (stack, stack_size);
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user