git-daemon: --inetd implies --syslog
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>
Andreas Ericsson committed
Nov 14, 2005 at 17:41 UTC
bce8230d5d897a738cc004954df71f50a40295db
2 files changed
+4
-3
Documentation/git-daemon.txt
+1
-1
@@ -35,7 +35,7 @@ OPTIONS
35
do not have the 'git-daemon-export-ok' file.
36
37
--inetd::
38
- Have the server run as an inetd service.
38
+ Have the server run as an inetd service. Implies --syslog.
39
40
--port::
41
Listen on an alternative port.
daemon.c
+3
-2
@@ -628,8 +628,9 @@ int main(int argc, char **argv)
628
629
if (inetd_mode) {
630
fclose(stderr); //FIXME: workaround
631
+ log_syslog = 1;
632
return execute();
632
- } else {
633
- return serve(port);
633
}
634
+
635
+ return serve(port);
636
}