Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'et/spell-poll-infinite-with-minus-one-only' into maint
author
Junio C Hamano
<gitster@pobox.com>
Fri, 19 Sep 2014 21:05:13 +0000
(14:05 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 19 Sep 2014 21:05:13 +0000
(14:05 -0700)
* et/spell-poll-infinite-with-minus-one-only:
upload-pack: keep poll(2)'s timeout to -1
upload-pack.c
patch
|
blob
|
history
raw
(from parent 1:
08fd8a0
)
diff --git
a/upload-pack.c
b/upload-pack.c
index 01de944a0a23f752364de51d7f5a5be6480575e8..433211a238cfee261e6e1f9e73d14df9178f004a 100644
(file)
--- a/
upload-pack.c
+++ b/
upload-pack.c
@@
-167,7
+167,9
@@
static void create_pack_file(void)
if (!pollsize)
break;
- ret = poll(pfd, pollsize, 1000 * keepalive);
+ ret = poll(pfd, pollsize,
+ keepalive < 0 ? -1 : 1000 * keepalive);
+
if (ret < 0) {
if (errno != EINTR) {
error("poll failed, resuming: %s",