Skip to content

Commit ea8620b

Browse files
committed
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
2 parents 1328d29 + 02818a9 commit ea8620b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

http-backend.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,8 @@ static void run_service(const char **argv, int buffer_input)
486486
if (buffer_input || gzipped_request || req_len >= 0)
487487
cld.in = -1;
488488
cld.git_cmd = 1;
489+
cld.clean_on_exit = 1;
490+
cld.wait_after_clean = 1;
489491
if (start_command(&cld))
490492
exit(1);
491493

0 commit comments

Comments
 (0)