diff --git a/threads-api/main-signal-cv.c b/threads-api/main-signal-cv.c index 4ac48937..8333b450 100644 --- a/threads-api/main-signal-cv.c +++ b/threads-api/main-signal-cv.c @@ -50,6 +50,7 @@ int main(int argc, char *argv[]) { Pthread_create(&p, NULL, worker, NULL); signal_wait(&s); printf("this should print last\n"); + Pthread_join(p, NULL); return 0; }