Re: Unable to clone via git protocol / early EOF / index-pack failed
- From
- Holger Freyther <zecke@selfish.org>
- Date
- Mar 26, 2011, 17:34 UTC
- Message-ID
- <loom.20110326T183100-349@post.gmane.org>
- In-Reply-To
- <loom.20110326T180713-801@post.gmane.org>
Holger Freyther <zecke <at> selfish.org> writes:
> It is a bit difficult to track all the processes that get started and what they > should do and to figure out at which point the fd for the tcp socket is really > closed.
If I do the below hack it is working fine. Adding a fflush(NULL).. or a close(fileno(stdout)).. fsync... sched_yield() is not fixing it though.
diff --git a/upload-pack.c b/upload-pack.c index 72aa661..4cd12c9 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -695,6 +695,8 @@ static void upload_pack(void) get_common_commits(); create_pack_file(); } + + sleep(1); } int main(int argc, char **argv)