network: Handle EINTR
network: Handle EINTR

When a recv() or send() operation is interrupted by a signal make sure to
retry the operation. Otherwise we'll get communication issues from which we
wont be able to recover.

Signed-off-by: Lars-Peter Clausen <3318dc5ce3e4fb7c28a0b841b6801c884e1d0896@metafoo.de>

gburca/libiio,analogdevicesinc/libiio,sensarliar/libiio,sensarliar/libiio,sensarliar/libiio,analogdevicesinc/libiio,Sunderfield/libiio,gburca/libiio,Sunderfield/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio,Sunderfield/libiio,gburca/libiio