sem_timedwait not supported properly on RedHat Enterprise Linux 5.3 onwards?
问题 We're seeing odd behaviour on RedHat Enterprise Linux systems with pthreads sem_timedwait. It's only occurring with versions 5.3 onwards. When we create the semaphore on a background thread with sem_init, no error is returned. When we do sem_timedwait, we get an immediate return with errno = 38 (ENOSYS) indicating it's not supported. If we do the same thing on the main thread, it works as expected and we get no error from sem_timedwait. We don't see it on RHEL 5.2 or before. We've tried