]> git.ipfire.org Git - thirdparty/git.git/commit - http-backend.c
http-backend: enable cleaning up forked upload/receive-pack on exit
authorMax Kirillov <max@max630.net>
Sat, 24 Nov 2018 13:48:27 +0000 (15:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Nov 2018 02:10:18 +0000 (11:10 +0900)
commit02818a98d7bddbc036fe6a1ceea847c6de20ed00
tree9483ada714869d05bb563f282c61d2032535a4a6
parent98cdfbb84ad2ed6a2eb43dafa357a70a4b0a0fad
http-backend: enable cleaning up forked upload/receive-pack on exit

If http-backend dies because of errors, started upload-pack or
receive-pack are not killed and waited, but rather stay running for
some time until they exit because of closed stdin. It may be
undesirable in working environment, and it also causes occasional
failure of t5562, because the processes keep opened act.err, and
sometimes write there errors after next test started using the file.

Fix by enabling cleaning of the command at http-backed exit.

Reported-by: Carlo Arenas <carenas@gmail.com>
Helped-by: Carlo Arenas <carenas@gmail.com>
Signed-off-by: Max Kirillov <max@max630.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-backend.c