1
0
mirror of https://github.com/git/git synced 2024-07-04 16:48:40 +00:00

[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: Junio C Hamano <junkio@cox.net>
This commit is contained in:
lars.doelle@on-line.de 2005-09-08 03:50:01 +02:00 committed by Junio C Hamano
parent 6a2e50f9df
commit 7c3693f1f2

View File

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