[PATCH] Allow system call restarts upon signal interruption

Keith Packard keithp at keithp.com
Wed May 13 12:00:01 PDT 2015


Adam Jackson <ajax at nwnk.net> writes:

> In principle SA_RESTART is so poorly specified that this might be
> sketchy; in practice, near as I can tell, nobody is insane enough to
> do restarts on select() and friends, so I think we'll be fine.

In my experience select(2) has always returned EINTR for signals with
SA_RESTART set, ever since it was added in BSD Unix. That (conveniently)
matches the current signal(7) man page, which documents which syscalls
restart and which do not.

> Reviewed-by: Adam Jackson <ajax at redhat.com>

Yeah, it's probably an entirely reasonable plan to reduce the amount of
EINTR processing.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150513/ca524b78/attachment.sig>


More information about the xorg-devel mailing list