diff options
author | Andreas Ericsson <exon@op5.se> | 2005-11-14 19:41:01 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-15 11:19:32 +0300 |
commit | bce8230d5d897a738cc004954df71f50a40295db (patch) | |
tree | 4686035a39e23998a56858bf1b797b457e12156b | |
parent | 8b649e27dd26608098605ded691b497ffa032500 (diff) |
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>
-rw-r--r-- | Documentation/git-daemon.txt | 2 | ||||
-rw-r--r-- | daemon.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/git-daemon.txt b/Documentation/git-daemon.txt index 67c5f22a7d..3783858302 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. @@ -628,8 +628,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); } |