Skip to content

Commit

Permalink
git-daemon: --inetd implies --syslog
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andreas Ericsson authored and Junio C Hamano committed Nov 15, 2005
1 parent 8b649e2 commit bce8230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/git-daemon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit bce8230

Please sign in to comment.