STINNER Victor added the comment: pthread_* are false positive, they cannot fail with EINTR:
""" Pthreads function return values Most pthreads functions return 0 on success, and an error number of failure. Note that the pthreads functions do not set errno. For each of the pthreads functions that can return an error, POSIX.1-2001 specifies that the function can never fail with the error EINTR. """ Example of pthread_create: """ The pthread_create() function shall not return an error code of [EINTR]. """ pthread_atfork pthread_attr_destroy pthread_attr_getdetachstate pthread_attr_getguardsize pthread_attr_getinheritsched pthread_attr_getschedparam pthread_attr_getschedpolicy pthread_attr_getscope pthread_attr_getstack pthread_attr_getstacksize pthread_barrierattr_destroy pthread_barrierattr_getpshared pthread_barrier_destroy pthread_barrier_wait pthread_cancel pthread_cleanup_pop pthread_condattr_destroy pthread_condattr_getclock pthread_condattr_getpshared pthread_cond_broadcast pthread_cond_destroy pthread_cond_init pthread_cond_timedwait pthread_create pthread_detach pthread_equal pthread_getconcurrency pthread_getschedparam pthread_getspecific pthread_join pthread_key_create pthread_key_delete pthread_kill pthread_mutexattr_destroy pthread_mutexattr_getprioceiling pthread_mutexattr_getprotocol pthread_mutexattr_getpshared pthread_mutexattr_getrobust pthread_mutexattr_gettype pthread_mutex_consistent pthread_mutex_destroy pthread_mutex_getprioceiling pthread_mutex_lock pthread_mutex_timedlock pthread_once pthread_rwlockattr_destroy pthread_rwlockattr_getpshared pthread_rwlock_destroy pthread_rwlock_rdlock pthread_rwlock_timedrdlock pthread_rwlock_timedwrlock pthread_rwlock_trywrlock pthread_rwlock_unlock pthreads pthread_setcancelstate pthread_setschedprio pthread_sigmask pthread_spin_destroy pthread_spin_lock pthread_spin_unlock pthread_tryjoin_np ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23648> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com