summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorlars.doelle@on-line.de <lars.doelle@on-line.de>2005-09-08 03:50:01 +0200
committerJunio C Hamano <junkio@cox.net>2005-09-07 22:08:30 -0700
commit7c3693f1f240e17772c864fad35bc16226038fc8 (patch)
tree77952856c5deae6692a8b526a353d7749b106d9a /daemon.c
parent6a2e50f9dfdca7ac572bbe30dd0efdf19ca250f6 (diff)
downloadgit-7c3693f1f240e17772c864fad35bc16226038fc8.tar.gz
[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>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index fb3f25c486..24bac16668 100644
--- a/daemon.c
+++ b/daemon.c
@@ -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);
}