aboutsummaryrefslogtreecommitdiff
path: root/builtin-verify-pack.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-12 00:26:57 -0700
committerJunio C Hamano <junkio@cox.net>2006-09-12 22:39:45 -0700
commitd3788e19e20cd14aeac99d1f294d9a368437284f (patch)
tree2c5f1aa4dcd80d48e027287d8c19c0b0d211e3b2 /builtin-verify-pack.c
parent23d6d112c004d4242f9dbd8161f79ccdeb47bde8 (diff)
downloadgit-d3788e19e20cd14aeac99d1f294d9a368437284f.tar.gz
git-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 'builtin-verify-pack.c')
0 files changed, 0 insertions, 0 deletions