Commit b92a5225 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Tweak error handling of select.

parent 496aff50
......@@ -563,14 +563,12 @@ main(int argc, char **argv)
rc = select(MAX(protocol_socket, kernel_socket) + 1,
&readfds, NULL, NULL, &tv);
if(rc < 0) {
if(errno == EINTR) {
rc = 0;
FD_ZERO(&readfds);
} else {
if(errno != EINTR) {
perror("select");
usleep(1000000);
continue;
}
rc = 0;
FD_ZERO(&readfds);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment