From: Stephen R. van den Berg Date: Thu, 14 Aug 2008 18:02:20 GMT Subject: [PATCH 1/4] git-daemon: call logerror() instead of error() Message-ID: <20080814180220.15729.34048.stgit@aristoteles.cuci.nl> Fix wording/case of the two messages. Signed-off-by: Stephen R. van den Berg --- daemon.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.c b/daemon.c index 8dcde73..93e1106 100644 --- a/daemon.c +++ b/daemon.c @@ -836,7 +836,7 @@ static int socksetup(char *listen_addr, int listen_port, int **socklist_p) if (sockfd < 0) continue; if (sockfd >= FD_SETSIZE) { - error("too large socket descriptor."); + logerror("Socket descriptor too large"); close(sockfd); continue; } @@ -955,7 +955,7 @@ static int service_loop(int socknum, int *socklist) if (poll(pfd, socknum + 1, -1) < 0) { if (errno != EINTR) { - error("poll failed, resuming: %s", + logerror("Poll failed, resuming: %s", strerror(errno)); sleep(1); }