Skip to content

Commit 533ca56

Browse files
committed
Revert "Fix pthread_cond_timedwait/4-1.c to call pthread_exit() instead of exit() to report success."
This reverts commit e350af1.
1 parent 2637242 commit 533ca56

File tree

1 file changed

+2
-2
lines changed
  • conformance/interfaces/pthread_cond_timedwait

1 file changed

+2
-2
lines changed

conformance/interfaces/pthread_cond_timedwait/4-1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ void *t1_func(void *arg)
5252
if (rc == ETIMEDOUT) {
5353
fprintf(stderr,"Thread1 stops waiting when time is out\n");
5454
printf("Test PASSED\n");
55-
pthread_exit(PTS_PASS);
55+
exit(PTS_PASS);
5656
}
5757
else {
5858
fprintf(stderr,"pthread_cond_timedwait return %d instead of ETIMEDOUT\n", rc);
5959
printf("Test FAILED\n");
60-
pthread_exit(PTS_FAIL);
60+
exit(PTS_FAIL);
6161
}
6262
}
6363

0 commit comments

Comments
 (0)