Fix wording/case of the two messages.
Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
---
daemon.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/daemon.c b/daemon.c
index 8dcde73..93e1106 100644
--- 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("poll failed, resuming: %s",
+ logerror("Poll failed, resuming: %s",
strerror(errno));
sleep(1);
}
From nobody Thu Aug 14 19:23:39 2008
From: "Stephen R. van den Berg" <srb@cuci.nl>
Subject: [PATCH 2/4] git-daemon: use LOG_PID, simplify logging code
To: git@vger.kernel.org
Date: Thu, 14 Aug 2008 19:23:39 +0200
Message-ID: <20080814172339.2371.68063.stgit@aristoteles.cuci.nl>
In-Reply-To: <20080814172339.2371.25051.stgit@aristoteles.cuci.nl>
References: <20080814172339.2371.25051.stgit@aristoteles.cuci.nl>
User-Agent: StGIT/0.14.2
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Make git-daemon use LOG_PID like most daemons.
Cleanup buffering code for logging.
Use linebuffering for stderr when logging to files.
Log message at startup.
Signed-off-by: Stephen R. van den Berg <srb@cuci.nl>
---
daemon.c | 47 ++++++++++++++++-------------------------------
1 files changed, 16 insertions(+), 31 deletions(-)
diff --git a/daemon.c b/daemon.c
index 93e1106..2f86671 100644
--- a/daemon.c
+++ b/daemon.c
@@ -78,38 +78,19 @@ static struct interp interp_table[] = {
static void logreport(int priority, const char *err, va_list params)
{
- /* We should do a s...