summaryrefslogtreecommitdiff
path: root/pack-revindex.h
diff options
context:
space:
mode:
authorAbhijit Menon-Sen <ams@toroid.org>2008-08-04 11:38:27 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-08-05 04:51:17 (GMT)
commit108c2aaf7984081daa6aed6d3947c7c0952216c2 (patch)
tree659dc0c3bbab67fac09d5263a93327c4de0f245d /pack-revindex.h
parentc72e0db1ff686e93478ee21a3e80a9ca73143753 (diff)
downloadgit-108c2aaf7984081daa6aed6d3947c7c0952216c2.zip
git-108c2aaf7984081daa6aed6d3947c7c0952216c2.tar.gz
git-108c2aaf7984081daa6aed6d3947c7c0952216c2.tar.bz2
Git.pm: localise $? in command_close_bidi_pipe()
Git::DESTROY calls _close_cat_blob and _close_hash_and_insert_object, which in turn call command_close_bidi_pipe, which calls waitpid, which alters $?. If this happens during global destruction, it may alter the program's exit status unexpectedly. Making $? local to the function solves the problem. (The problem was discovered due to a failure of test #8 in t9106-git-svn-commit-diff-clobber.sh.) Signed-off-by: Abhijit Menon-Sen <ams@toroid.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-revindex.h')
0 files changed, 0 insertions, 0 deletions