mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
Improve posix_spawn() some more
This commit is contained in:
parent
6430e474b4
commit
00084577a3
18 changed files with 301 additions and 293 deletions
|
@ -169,7 +169,7 @@ void *CondWaitDeferredWorker(void *arg) {
|
|||
pthread_setcancelstate(PTHREAD_CANCEL_DEFERRED, 0);
|
||||
ASSERT_EQ(0, pthread_mutex_lock(&mu));
|
||||
ASSERT_EQ(ECANCELED, pthread_cond_timedwait(&cv, &mu, 0));
|
||||
__builtin_trap();
|
||||
abort();
|
||||
}
|
||||
|
||||
TEST(pthread_cancel, condDeferredWait_reacquiresMutex) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue