1
0
mirror of https://github.com/git/git.git synced 2024-09-28 18:32:37 +02:00
git/perl
Abhijit Menon-Sen 108c2aaf79 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>
2008-08-04 21:51:17 -07:00
..
.gitignore
Git.pm Git.pm: localise $? in command_close_bidi_pipe() 2008-08-04 21:51:17 -07:00
Makefile perl/Makefile: update NO_PERL_MAKEMAKER section 2008-07-25 00:08:56 -07:00
Makefile.PL
private-Error.pm