vgdb: Handle EAGAIN in read_buf
[valgrind.git] / none / tests / pth_exit.c
blob75f19a70476abc5671c6f246b37715d84e366f9d
1 #include <pthread.h>
2 #include <unistd.h>
4 static void *th(void *v)
6 sleep(1);
7 pthread_exit(0);
10 int main()
12 pthread_t a;
14 pthread_create(&a, NULL, th, NULL);
15 pthread_create(&a, NULL, th, NULL);
16 pthread_create(&a, NULL, th, NULL);
17 pthread_create(&a, NULL, th, NULL);
19 pthread_exit(0);