Willy Tarreau | 07ecdea | 2016-04-20 10:20:22 +0200 | [diff] [blame] | 1 | #include <stdio.h> |
2 | #include <signal.h> | ||||
3 | #include <unistd.h> | ||||
4 | |||||
5 | int 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 | } |