pthread: fix semaphore error handling
POSIX sem_*() functions return -1 on error and the error code in errno (contrary to most POSIX thread functions).
Showing
Please register or sign in to comment
POSIX sem_*() functions return -1 on error and the error code in errno (contrary to most POSIX thread functions).