git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-daemon: --inetd implies --syslog

From
Andreas Ericsson <exon@op5.se>
Date
Nov 14, 2005, 16:41 UTC
Message-ID
<20051114164101.58A495BF92@nox.op5.se>
Otherwise nothing is logged anywhere, which is a Bad Thing.
Signed-off-by: Andreas Ericsson <ae@op5.se>
---
 Documentation/git-daemon.txt |    2 +-
 daemon.c                     |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

applies-to: 963d67921d6f65c08d51a8c93811f03274c34703 9fac415ad7ec34c21b20b3c349872304869505df

diff --git a/Documentation/git-daemon.txt b/Documentation/git-daemon.txt
index 67c5f22..3783858 100644
--- a/Documentation/git-daemon.txt
+++ b/Documentation/git-daemon.txt
@@ -35,7 +35,7 @@ OPTIONS
 	do not have the 'git-daemon-export-ok' file.
 
 --inetd::
-	Have the server run as an inetd service.
+	Have the server run as an inetd service. Implies --syslog.
 
 --port::
 	Listen on an alternative port.
diff --git a/daemon.c b/daemon.c
index c3f8641..50a3396 100644
--- a/daemon.c
+++ b/daemon.c
@@ -627,9 +627,9 @@ int main(int argc, char **argv)
 	}
 
 	if (inetd_mode) {
-		fclose(stderr); //FIXME: workaround
+		log_syslog = 1;
 		return execute();
-	} else {
-		return serve(port);
 	}
+
+	return serve(port);
 }
---
0.99.9.GIT
Next: Junio C Hamano
Message 1 of 5 in “git-daemon: --inetd implies --syslog”
  1. git-daemon: --inetd implies --syslogAndreas Ericsson, Nov 14, 2005
  2. Junio C HamanoNov 14, 2005
  3. Andreas EricssonNov 14, 2005
  4. Junio C HamanoNov 14, 2005
  5. H. Peter AnvinNov 14, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.