summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8b649e2)
raw | patch | inline | side by side (parent: 8b649e2)
author | Andreas Ericsson <exon@op5.se> | |
Mon, 14 Nov 2005 16:41:01 +0000 (17:41 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 15 Nov 2005 08:19:32 +0000 (00:19 -0800) |
Otherwise nothing is logged anywhere, which is a Bad Thing.
Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-daemon.txt | patch | blob | history | |
daemon.c | patch | blob | history |
index 67c5f22a7d8179e18be9f0e7cac59866ee5dd530..3783858302018bf9d5afa4336a9fea95b3120167 100644 (file)
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 c3f86410d4fe392a2ced76b09e6af8ba8af534d5..e18475229885d28b39970f9619d0e89d66a8199b 100644 (file)
--- a/daemon.c
+++ b/daemon.c
if (inetd_mode) {
fclose(stderr); //FIXME: workaround
+ log_syslog = 1;
return execute();
- } else {
- return serve(port);
}
+
+ return serve(port);
}