From b46aad6df449445a9fc4aa7b32bd40005438e3f7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 14:18:05 +0200 Subject: Adding upstream version 2.9.5. Signed-off-by: Daniel Baumann --- tests/exp/blocksig.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/exp/blocksig.c (limited to 'tests/exp/blocksig.c') diff --git a/tests/exp/blocksig.c b/tests/exp/blocksig.c new file mode 100644 index 0000000..13b55e7 --- /dev/null +++ b/tests/exp/blocksig.c @@ -0,0 +1,16 @@ +#include +#include +#include + +int main(int argc, char **argv) +{ + sigset_t new_sig, old_sig; + + sigfillset(&new_sig); + sigprocmask(SIG_SETMASK, &new_sig, &old_sig); + printf("old_sig: %16Lx\n", *(unsigned long long*)&old_sig); + printf("new_sig: %16Lx\n", *(unsigned long long*)&new_sig); + + argc--; argv++; + return argc ? execvp(*argv, argv) : 0; +} -- cgit v1.2.3