blob: 13b55e7fce09dc31a0657722042d3a371f289619 [file] [log] [blame]
Willy Tarreau07ecdea2016-04-20 10:20:22 +02001#include <stdio.h>
2#include <signal.h>
3#include <unistd.h>
4
5int main(int argc, char **argv)
6{
7 sigset_t new_sig, old_sig;
8
9 sigfillset(&new_sig);
10 sigprocmask(SIG_SETMASK, &new_sig, &old_sig);
11 printf("old_sig: %16Lx\n", *(unsigned long long*)&old_sig);
12 printf("new_sig: %16Lx\n", *(unsigned long long*)&new_sig);
13
14 argc--; argv++;
15 return argc ? execvp(*argv, argv) : 0;
16}