mirror of
https://github.com/git/git.git
synced 2024-11-20 16:14:02 +01:00
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>
This commit is contained in:
parent
2ebc02d32a
commit
df0daf8ac0
4
daemon.c
4
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user