mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
parent
eaa234b678
commit
2a46c1e589
@ -130,5 +130,5 @@ pthread_testcancel(void)
|
||||
static const int32 kFlags = THREAD_CANCELED | THREAD_CANCEL_ENABLED;
|
||||
|
||||
if ((~atomic_get(&thread->flags) & kFlags) == 0)
|
||||
pthread_exit(NULL);
|
||||
pthread_exit(PTHREAD_CANCELED);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user