Bug 401416 - Compile failure with openmpi 4.0.
[valgrind.git] / none / tests / sigsusp.c
blob0977e262425ffd6296ba41e8c4e9a7d66269a740
1 #include <stdlib.h>
2 #include <pthread.h>
3 #include <unistd.h>
4 #include <stdio.h>
5 #include <signal.h>
6 static void* t_fn(void* v)
8 sigset_t mask;
10 sigfillset(&mask);
11 sigsuspend(&mask);
12 return NULL;
15 int main (int argc, char *argv[])
17 pthread_t t1;
19 pthread_create(&t1, NULL, t_fn, NULL);
21 sleep(1); // Should be enough to have the thread in sigsuspend
22 // printf("dying\n");
23 exit(0);