I found this patch from really old times. I believe what I tried to do is to avoid spurious EINTR from system calls like select(2)/poll(2) and sleeps, which explicitely want to return EINTR for the signal interruption even when the signal disposition is flagged with SA_RESTART.
I have vague memory that the issue was reported by Andrey in context of udtrace, and that the patch has some issues, but I do not remember the outcome. I could revive it if this is considered interesting.