@matheusbsbs / matheus-bagliano / commits / 7c3693f1f2
Fork 0

[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>

lars.doelle@on-line.de committed Sep 8, 2005 at 03:50 UTC 7c3693f1f240e17772c864fad35bc16226038fc8
1 file changed +3 -1
daemon.c
+3 -1
@@ -353,8 +353,10 @@ int main(int argc, char **argv)
353 usage(daemon_usage);
354 }
355
356 - if (inetd_mode)
356 + if (inetd_mode) {
357 + fclose(stderr); //FIXME: workaround
358 return execute();
359 + }
360
361 return serve(port);
362 }