]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix: Correctly block/unblock all signals on Linux posix_spawn
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 14 Sep 2016 17:41:21 +0000 (14:41 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.com>
Wed, 28 Sep 2016 22:30:07 +0000 (15:30 -0700)
commit066437ad328b350a3768c5da773b884fcfb239c3
tree48ba8b306d8a8d61e9e05d2475b704962a479d34
parent28202d1341537448c140291175f5ee837bf89ae1
posix: Correctly block/unblock all signals on Linux posix_spawn

This patch correctly block and unblocks all signals when executing
Linux posix_spawn by using the __libc_signal_{un}block_all functions
instead of default sigprocmask.  The latter might remove both
SIGCANCEL and SIGSETXID from the blocked signal list.

Checked on x86_64, i686, powerpc64le, and aarch64.

* sysdeps/unix/sysv/linux/spawni.c (__spawnix): Correctly block and unblock
all signals when executing the clone vfork child.
(SIGALL_SET): Remove macro.
ChangeLog
sysdeps/unix/sysv/linux/spawni.c