提交 df0daf8a 编写于 作者: S Stephen R. van den Berg 提交者: Junio C Hamano

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: NStephen R. van den Berg <srb@cuci.nl>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 2ebc02d3
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册