summaryrefslogtreecommitdiff
path: root/http-backend.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-04 21:33:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-04 21:33:35 (GMT)
commitea8620b40178a5130d674212901381f64ac970da (patch)
tree83025b96f04d1e42cff96e9469a4e0d25d547f0c /http-backend.c
parent1328d29943c81602bedba085e8c41acf01b4c866 (diff)
parent02818a98d7bddbc036fe6a1ceea847c6de20ed00 (diff)
downloadgit-ea8620b40178a5130d674212901381f64ac970da.zip
git-ea8620b40178a5130d674212901381f64ac970da.tar.gz
git-ea8620b40178a5130d674212901381f64ac970da.tar.bz2
Merge branch 'mk/http-backend-kill-children-before-exit'
The http-backend CGI process did not correctly clean up the child processes it spawns to run upload-pack etc. when it dies itself, which has been corrected. * mk/http-backend-kill-children-before-exit: http-backend: enable cleaning up forked upload/receive-pack on exit
Diffstat (limited to 'http-backend.c')
-rw-r--r--http-backend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/http-backend.c b/http-backend.c
index 9e894f1..29e68e3 100644
--- a/http-backend.c
+++ b/http-backend.c
@@ -486,6 +486,8 @@ static void run_service(const char **argv, int buffer_input)
if (buffer_input || gzipped_request || req_len >= 0)
cld.in = -1;
cld.git_cmd = 1;
+ cld.clean_on_exit = 1;
+ cld.wait_after_clean = 1;
if (start_command(&cld))
exit(1);