version 1.29.2.3, 2001/03/21 19:46:22 |
version 1.29.2.4, 2001/05/07 21:09:26 |
|
|
while (len > 0) { |
while (len > 0) { |
l = read(auth->fd, buf + 4 - len, len); |
l = read(auth->fd, buf + 4 - len, len); |
if (l == -1 && (errno == EAGAIN || errno == EINTR)) |
if (l == -1 && (errno == EAGAIN || errno == EINTR)) |
continue; |
continue; |
if (l <= 0) { |
if (l <= 0) { |
error("Error reading response length from authentication socket."); |
error("Error reading response length from authentication socket."); |
return 0; |
return 0; |
|
|
l = sizeof(buf); |
l = sizeof(buf); |
l = read(auth->fd, buf, l); |
l = read(auth->fd, buf, l); |
if (l == -1 && (errno == EAGAIN || errno == EINTR)) |
if (l == -1 && (errno == EAGAIN || errno == EINTR)) |
continue; |
continue; |
if (l <= 0) { |
if (l <= 0) { |
error("Error reading response from authentication socket."); |
error("Error reading response from authentication socket."); |
return 0; |
return 0; |