d1d2b7c397d23e670f6ab8b0446d6b9ec3e97178 changes from the original repo
Improved handling of EINTR in _lthread_poll(): do limited invocations of
polling method, and don't spam on stderr in that case. Either don't spam
on stderr on ENOTSOCK from getsockopt() - ran into this while using
eventfd.