fix off-by-one error in sem_(timed)wait (using old sem value instead of new)
[musl] / src / thread / sem_wait.c
2011-03-04 Rich Felkerimplement POSIX semaphores