Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-daemon: call logerror() instead of error()
author
Stephen R. van den Berg
<srb@cuci.nl>
Thu, 14 Aug 2008 18:02:20 +0000
(20:02 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 18 Aug 2008 00:43:53 +0000
(17:43 -0700)
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>
daemon.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
2ebc02d
)
diff --git
a/daemon.c
b/daemon.c
index 8dcde73200d1ddbc0dec0dbfdc2f4ff15047abd9..93e110653828d095bb09ec09aacafd96a5473b11 100644
(file)
--- 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("p
oll failed, resuming: %s",
+
logerror("P
oll failed, resuming: %s",
strerror(errno));
sleep(1);
}