[PATCH] Clean up semaphore EINTR handling after Linux futex docs clarification.
Torvald Riegel
triegel@redhat.com
Mon Jun 8 22:20:00 GMT 2015
The Linux kernel futex documentation now states that since Linux 2.6.22,
FUTEX_WAIT does return EINTR only when interrupted by a signal, and not
spuriously anymore. We only support more recent kernels, so clean up
EINTR handling in the semaphore and update the comments.
This is code and mostly comments clean-up, no behavioral change. I've
put this on top of the futex API patch I just sent because that one
documents the conditions under which futex_wait can return EINTR.
I intend to commit this unless I hear objections.
2015-06-08 Torvald Riegel <triegel@redhat.com>
* nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
(sem_assume_only_signals_cause_futex_EINTR): Remove.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sem-eintr.patch
Type: text/x-patch
Size: 3598 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150608/bd3dabce/attachment.bin>
More information about the Libc-alpha
mailing list