X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=daemon.c;h=932d908bad3587b8ae7868112d587eaca775a303;hb=933693da77857b12ba86d999a601dbdb8ab212ff;hp=b7d60918ebab7816d8711b927aeae7dfab32fd2e;hpb=4d8fa916c9ff89613234f41b9222a2b679bce5c3;p=git.git diff --git a/daemon.c b/daemon.c index b7d60918..932d908b 100644 --- a/daemon.c +++ b/daemon.c @@ -294,8 +294,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; }