author | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Aug 2010 23:30:11 +0000 (16:30 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Aug 2010 23:30:11 +0000 (16:30 -0700) |
* sp/fix-smart-http-deadlock-on-error:
smart-http: Don't deadlock on server failure
smart-http: Don't deadlock on server failure
remote-curl.c | patch | blob | history |
diff --git a/remote-curl.c b/remote-curl.c
index 24fbb9a9b972c1078b3688b2d0683c9704e09ee6..04d4813e4183c675b54aba942cd078d8ff632053 100644 (file)
--- a/remote-curl.c
+++ b/remote-curl.c
rpc->len = n;
err |= post_rpc(rpc);
}
- strbuf_read(&rpc->result, client.out, 0);
close(client.in);
- close(client.out);
client.in = -1;
+ strbuf_read(&rpc->result, client.out, 0);
+
+ close(client.out);
client.out = -1;
err |= finish_command(&client);