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>
maint
Andreas Ericsson 2005-11-14 17:41:01 +01:00 committed by Junio C Hamano
parent 8b649e27dd
commit bce8230d5d
2 changed files with 4 additions and 3 deletions

View File

@ -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.

View File

@ -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);
}