]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
ipc: retry sendmsg + recvmsg calls on EINTR
authorEric Wong <e@80x24.org>
Sat, 25 Mar 2023 02:08:52 +0000 (02:08 +0000)
committerEric Wong <e@80x24.org>
Sat, 25 Mar 2023 02:12:54 +0000 (02:12 +0000)
commitcfd20b04dfe495df80ad9c62949103d555f65f49
tree6d090488a42f47111d1d7ef0f06d127ec1d55a58
parente28c01f038ddafa1f78c1ba47b5593fe353b5978
ipc: retry sendmsg + recvmsg calls on EINTR

I'm not sure how this went undetected for so long, but EINTR
must be checked for when working with blocking sockets.  EINTR
shouldn't happen for non-blocking sockets, though, but it's
easier to just use the new wrapper in most of those places.

I don't know what I was smoking when I left out EINTR checks :x
lib/PublicInbox/IPC.pm
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiSelfSocket.pm