]> Sergey Matveev's repositories - public-inbox.git/commit
qspawn: clarify and improve error handling
authorEric Wong <e@80x24.org>
Sun, 15 Sep 2019 01:00:06 +0000 (01:00 +0000)
committerEric Wong <e@80x24.org>
Sun, 15 Sep 2019 06:27:09 +0000 (06:27 +0000)
commit87189dac4ad8af93ffba00af47d12ad42fb6971e
treeeff557598f6cf15b2729d319c730529f8cc37665
parentb719908f4f94df7093454eed9b6c156f744e4d0a
qspawn: clarify and improve error handling

EINTR should not happen when using non-blocking sockets like we
do in our daemons, but maybe some OSes allow it to happen and
edge-triggered notifications won't notify us again.

So always retry immediately on EINTR without relying on kqueue
or epoll to notify us, and log any other unrecoverable errors
which may happen while we're at it.
lib/PublicInbox/Qspawn.pm