X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=daemon.c;h=fb3f25c48665596f41ebcee66037bdd1be2dd30a;hb=8c1f5f0f1f9c36ef5465512753efeff36758ba7d;hp=b7d60918ebab7816d8711b927aeae7dfab32fd2e;hpb=4d8fa916c9ff89613234f41b9222a2b679bce5c3;p=git.git diff --git a/daemon.c b/daemon.c index b7d60918..fb3f25c4 100644 --- a/daemon.c +++ b/daemon.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include @@ -294,8 +295,11 @@ static int serve(int port) fds = fds_init; if (select(maxfd + 1, &fds, NULL, NULL, NULL) < 0) { - error("select failed, resuming: %s", strerror(errno)); - sleep(1); + if (errno != EINTR) { + error("select failed, resuming: %s", + strerror(errno)); + sleep(1); + } continue; }