Source code is
if (errno == EAGAIN && errno == EINTR)
Suggest swap && for ||. I found this bug by using the gcc compiler
flag -Wlogical-op. It might be a good idea to start using this
compiler flag on development builds.
Created attachment 122928 [details] [review]
library: Fix check for EAGAIN or EINTR
Thanks for reporting the bug. Pushed a fix to git master.
Attachment 122928 [details] pushed as 836dcc4 - library: Fix check for EAGAIN or EINTR