diff options
author | Stephen R. van den Berg <srb@cuci.nl> | 2008-08-14 20:02:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-17 17:43:53 -0700 |
commit | df0daf8ac0fce4bb98d5aff9295535a1606d2fad (patch) | |
tree | a7e69be7baf7f1dc2d228654223e575024d4cbac /daemon.c | |
parent | 2ebc02d32a4360da2cf69c2b5f5bfad0716d42b0 (diff) | |
download | git-df0daf8ac0fce4bb98d5aff9295535a1606d2fad.tar.gz |
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 <srb@cuci.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'daemon.c')
-rw-r--r-- | daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |