diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-12 00:26:57 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-12 22:39:45 -0700 |
commit | d3788e19e20cd14aeac99d1f294d9a368437284f (patch) | |
tree | 2c5f1aa4dcd80d48e027287d8c19c0b0d211e3b2 /git-applypatch.sh | |
parent | Add sideband status report to git-archive protocol (diff) | |
download | tgif-d3788e19e20cd14aeac99d1f294d9a368437284f.tar.xz |
upload-archive: monitor child communication more carefully.
Franck noticed that the code around polling and relaying messages
from the child process was quite bogus. Here is an attempt to
clean it up a bit, based on his patch:
- When POLLHUP is set, it goes ahead and reads the file
descriptor. Worse yet, it does not check the return value of
read() for errors when it does.
- When we processed one POLLIN, we should just go back and see
if any more data is available. We can check if the child is
still there when poll gave control back at us but without any
actual input.
[jc: with simplification suggested by Franck. ]
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-applypatch.sh')
0 files changed, 0 insertions, 0 deletions