Commit 42ea5c40 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Use sleep instead of usleep when handling errors.

usleep doesn't handle large arguments portably.
parent 6f89fe2e
......@@ -568,7 +568,7 @@ main(int argc, char **argv)
if(rc < 0) {
if(errno != EINTR) {
perror("select");
usleep(1000000);
sleep(1);
}
rc = 0;
FD_ZERO(&readfds);
......@@ -590,7 +590,7 @@ main(int argc, char **argv)
if(rc < 0) {
if(errno != EAGAIN && errno != EINTR) {
perror("recv");
usleep(1000000);
sleep(1);
}
} else {
FOR_ALL_NETS(net) {
......
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