diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-11-05 23:18:16 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-11-05 23:18:17 +0300 |
commit | b8f5242592146c85c2e09fd9721e522ce4dd32e5 (patch) | |
tree | ef6940721a58a3b0c747a4e756dfc80e8a48756a /Documentation | |
parent | db43891ce60d0f713a41cfc46097262c73aa99d7 (diff) | |
parent | b1b49ff8d42a21ade6a72b40a147fd3eaff3db8d (diff) |
Merge branch 'rs/daemon-plug-child-leak' into maint
"git daemon" uses "run_command()" without "finish_command()", so it
needs to release resources itself, which it forgot to do.
* rs/daemon-plug-child-leak:
daemon: plug memory leak
run-command: factor out child_process_clear()
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/technical/api-run-command.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/technical/api-run-command.txt b/Documentation/technical/api-run-command.txt index a9fdb45b93..8bf3e37f53 100644 --- a/Documentation/technical/api-run-command.txt +++ b/Documentation/technical/api-run-command.txt @@ -46,6 +46,13 @@ Functions The argument dir corresponds the member .dir. The argument env corresponds to the member .env. +`child_process_clear`:: + + Release the memory associated with the struct child_process. + Most users of the run-command API don't need to call this + function explicitly because `start_command` invokes it on + failure and `finish_command` calls it automatically already. + The functions above do the following: . If a system call failed, errno is set and -1 is returned. A diagnostic |