sysrwloop: safely handle non-blocking sockets
commit02393ab1f3517436f1b8adee3c97e2b71a1f41f4
authorEric Wong <normalperson@yhbt.net>
Fri, 31 Oct 2008 23:40:45 +0000 (31 16:40 -0700)
committerEric Wong <normalperson@yhbt.net>
Fri, 31 Oct 2008 23:41:04 +0000 (31 16:41 -0700)
tree1114d4227a71cb25929974fb30c033a6fcefe562
parent4f57bb12f080de0ba7314319b1f1434e0c2e40a8
sysrwloop: safely handle non-blocking sockets

Non-blocking sockets can bail out with EAGAIN (and any socket
also with EINTR), so retry if we get those calls.
lib/mogilefs/util.rb