Re: semaphore: validate timespec and handle SA_RESTART

2018-04-24 Thread Philip Guenther
On Mon, 23 Apr 2018, Paul Irofti wrote: > After discussing further with mpi@ and guenther@, we decided to first > fix the existing semaphore implementation with regards to SA_RESTART > and POSIX compliant returns in the case where we deal with restartable > signals. > > Currently we return EINTR e

semaphore: validate timespec and handle SA_RESTART

2018-04-23 Thread Paul Irofti
Hi, After discussing further with mpi@ and guenther@, we decided to first fix the existing semaphore implementation with regards to SA_RESTART and POSIX compliant returns in the case where we deal with restartable signals. Currently we return EINTR everywhere which is mostly incorrect as the user