提交 7c3693f1 编写于 作者: L lars.doelle@on-line.de 提交者: Junio C Hamano

[PATCH] git-daemon --inetd

git-daemon using inetd. does not work properly. inetd routes stderr onto the
network line just like stdout, which was apparently not expected to be so.

As the result of this, the stream is closed by the receiver, because some
"Packing %d objects\n" originating from pack_objects is first reported over
the line instead of the expected pack_header, and so the SIGNATURE test
fails.  Here is a workaround.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 6a2e50f9
......@@ -353,8 +353,10 @@ int main(int argc, char **argv)
usage(daemon_usage);
}
if (inetd_mode)
if (inetd_mode) {
fclose(stderr); //FIXME: workaround
return execute();
}
return serve(port);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册