The issue here was basically the same as http://ewontfix.com/2/ but for EINTR/signals rather than cancellation.
-
-
-
Thoughts on SA_RESTART?
-
There's fundamentally no valid way to use EINTR short of hammering signals with exponential backoff (inherent race condition otherwise)...
-
So my view is that installing signal handlers without SA_RESTART is almost always a bug.
-
I generally don't write or recommend EINTR retry loops, because the only conceivable reason to install a signal handler without SA_RESTART..
-
...is that you want to be able to force operations to error out by sending a signal (which only works w/o races if you hammer it...).
End of conversation
New conversation -
-
-
Now do it again, but with SIGPIPE!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.