version 1.13, 2013/11/15 09:55:52
|
version 1.13.4.1, 2013/12/12 23:21:38
|
Line 218 rpc_Write(int sock, int type, int flags, sockaddr_t *
|
Line 218 rpc_Write(int sock, int type, int flags, sockaddr_t *
|
for (len = blen; len > 0; len -= ret, buf += ret) { |
for (len = blen; len > 0; len -= ret, buf += ret) { |
if ((ret = poll(&pfd, 1, DEF_RPC_TIMEOUT * 1000)) < 1 || |
if ((ret = poll(&pfd, 1, DEF_RPC_TIMEOUT * 1000)) < 1 || |
pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { |
pfd.revents & (POLLERR | POLLHUP | POLLNVAL)) { |
|
#if 0 |
if (!ret) |
if (!ret) |
continue; |
continue; |
|
#endif |
if (ret > 0) |
if (ret > 0) |
rpc_SetErr(EPIPE, "Disconnected RPC session\n"); |
rpc_SetErr(EPIPE, "Disconnected RPC session\n"); |
else |
else |