提交 bce8230d 编写于 作者: A Andreas Ericsson 提交者: Junio C Hamano

git-daemon: --inetd implies --syslog

Otherwise nothing is logged anywhere, which is a Bad Thing.
Signed-off-by: NAndreas Ericsson <ae@op5.se>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 8b649e27
......@@ -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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册