From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.7.10) Gecko/20050719 Red Hat/1.0.6-1.4.1 Firefox/1.0.6 Description of problem: sem_wait man page mention that it always return 0 which is false. It can return -1 and errno can be set to EINTR Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. man sem_wait 2. 3. Additional info:
You are reading the LinuxThreads man page. And in LinuxThreads, sem_wait can only return 0. For NPTL you should look at NPTL/POSIX man pages, for sem_wait man 3p sem_wait.