Merge branch 'sb/submodule-parallel-fetch'
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2016 20:22:14 +0000 (13:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jul 2016 20:22:15 +0000 (13:22 -0700)
Fix recently introduced codepaths that are involved in parallel
submodule operations, which gave up on reading too early, and
could have wasted CPU while attempting to write under a corner
case condition.

* sb/submodule-parallel-fetch:
hoist out handle_nonblock function for xread and xwrite
xwrite: poll on non-blocking FDs
xread: retry after poll on EAGAIN/EWOULDBLOCK

1  2 
wrapper.c
diff --cc wrapper.c
Simple merge