Optimize sighold implementation

System Internals / glibc - Adhemerval Zanella [linaro.org] - 6 November 2017 19:37 EST

This patch simplifies sighold a bit by removing an extra sigprocmask and using SIG_BLOCK (which union of the current set and the set argument).

Checked on x86_64-linux-gnu.

- signal/sighold.c (sighold): Optimize implementation.

d83da3a4ce Optimize sighold implementation
ChangeLog | 2 ++
signal/sighold.c | 10 ++--------
2 files changed, 4 insertions(+), 8 deletions(-)

Upstream: sourceware.org


  • Share