diff --git a/Userland/Libraries/LibPthread/pthread_cond.cpp b/Userland/Libraries/LibPthread/pthread_cond.cpp index 48436f9429..7913daec61 100644 --- a/Userland/Libraries/LibPthread/pthread_cond.cpp +++ b/Userland/Libraries/LibPthread/pthread_cond.cpp @@ -128,6 +128,6 @@ int pthread_cond_broadcast(pthread_cond_t* cond) VERIFY(mutex); int rc = futex(&cond->value, FUTEX_REQUEUE, 1, nullptr, &mutex->lock, INT_MAX); - VERIFY(rc == 0); + VERIFY(rc >= 0); return 0; } diff --git a/Userland/Libraries/LibPthread/semaphore.cpp b/Userland/Libraries/LibPthread/semaphore.cpp index bf579b7c14..9f38ec517a 100644 --- a/Userland/Libraries/LibPthread/semaphore.cpp +++ b/Userland/Libraries/LibPthread/semaphore.cpp @@ -77,7 +77,7 @@ int sem_post(sem_t* sem) if (!(value & POST_WAKES)) [[likely]] return 0; int rc = futex_wake(&sem->value, 1); - VERIFY(rc == 0); + VERIFY(rc >= 0); return 0; }