Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-05 00:33:34 +0300
committerJunio C Hamano <gitster@pobox.com>2019-01-05 00:33:35 +0300
commitea8620b40178a5130d674212901381f64ac970da (patch)
tree83025b96f04d1e42cff96e9469a4e0d25d547f0c /http-backend.c
parent1328d29943c81602bedba085e8c41acf01b4c866 (diff)
parent02818a98d7bddbc036fe6a1ceea847c6de20ed00 (diff)
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 9e894f197f..29e68e38b5 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);