check for EINTR and resume polling
bug fix: use helper sock_recv_packet