io: do not wait upon EINTR
io: do not wait upon EINTR

When interrupted during a read/write syscall, do not wait before trying
again. Only wait if the error was EAGAIN which means that the other side
of the socket is not ready.

Signed-off-by: Robin Jarry <469d6d325cc59f9b92eabc4e99fb576bc1f833c8@6wind.com>

CESNET/libnetconf2,CESNET/libnetconf2