sig{set,long}jmp: do not ignore sigsetjmp's second argument
authormirabilos <tg@debian.org>
Wed, 5 May 2021 19:02:37 +0000 (21:02 +0200)
committerBen Hutchings <benh@debian.org>
Sun, 26 Dec 2021 23:17:05 +0000 (23:17 +0000)
commitba5be860ae2070114298dc451178c3a96f9723ba
tree8463a168fe8ed6bed01c91346000715982c6cb5a
parente41931cdf2b77458a0500e5733122eda29dd0ba6
sig{set,long}jmp: do not ignore sigsetjmp's second argument

Origin: https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=eb10cf8c3128612a089ace8489a81bc4ffd5d07a
Bug-Debian: https://bugs.debian.org/988027

Save and restore the signal mask only if that argument is nonzero,
as required by the standards.  (Closes: Debian #988027)

Signed-off-by: mirabilos <tg@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Name sig-set-long-jmp-do-not-ignore-sigsetjmp-s-second-ar.patch
usr/include/setjmp.h
usr/klibc/CAVEATS
usr/klibc/siglongjmp.c