]> git.ipfire.org Git - thirdparty/haproxy.git/commit
TESTS: add blocksig.c to run tests with all signals blocked
authorWilly Tarreau <w@1wt.eu>
Wed, 20 Apr 2016 08:20:22 +0000 (10:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Apr 2016 08:53:12 +0000 (10:53 +0200)
commit07ecdea16562ddebe5ad1e8adaa2710ef7a82bb6
tree2a42f89c700ace716f31c6b9fd8225763b7f4172
parent4920d70fa0faf41679631e2d2b18ee0fc4b8955e
TESTS: add blocksig.c to run tests with all signals blocked

A problem was reported recently by some users of programs compiled
with Go 1.5 which by default blocks all signals before executing
processes, resulting in haproxy not receiving SIGUSR1 or even SIGTERM.

This program mimmicks this behaviour to make it easier to run tests.
It also displays the current signal mask. A simple test consists in
running it through itself.
tests/blocksig.c [new file with mode: 0644]