THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

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>
tags/v1.6.1-rc1
Stephen R. van den Berg Junio C Hamano 11 years ago
parent
commit
df0daf8ac0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon.c

+ 2
- 2
daemon.c View File

@@ -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…
Cancel
Save