From: Stephen R. van den Berg Date: Thu, 14 Aug 2008 18:02:20 +0000 (+0200) Subject: git-daemon: call logerror() instead of error() X-Git-Tag: v1.6.1-rc1~284^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=df0daf8ac0fce4bb98d5aff9295535a1606d2fad;p=git.git git-daemon: call logerror() instead of error() Use logerror(), not error(), so that the messages won't be lost, especially when running the daemon with its log sent to the syslog facility. Signed-off-by: Stephen R. van den Berg Signed-off-by: Junio C Hamano --- diff --git a/daemon.c b/daemon.c index 8dcde7320..93e110653 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); }