X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=recv.c;h=ba1cfd20bba03651387e1bb1826baa0592ab2b46;hb=7062b8a307355422f2c69b44b65f23eab17ce15d;hp=fd82bc0fa6d998e51072284aefe1dc5d79dd3663;hpb=adbf9f09c9bf2a680c61b1ef3541c04f1cde97cf;p=paraslash.git diff --git a/recv.c b/recv.c index fd82bc0f..ba1cfd20 100644 --- a/recv.c +++ b/recv.c @@ -19,6 +19,7 @@ #include "recv.h" #include "recv.cmdline.h" +#include "fd.h" #include "error.h" struct gengetopt_args_info conf; @@ -87,10 +88,8 @@ recv: max = MAX(max, ret); PARA_DEBUG_LOG("timeout: %lums\n", tv2ms(&timeout)); - ret = select(max + 1, &rfds, &wfds, NULL, &timeout); + ret = para_select(max + 1, &rfds, &wfds, &timeout); if (ret < 0) { - if (errno == EINTR || errno == EAGAIN) - goto recv; ret = -E_RECV_SELECT; goto out; }