summaryrefslogtreecommitdiff
path: root/Documentation/technical
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-11-03 23:13:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-11-03 23:13:12 (GMT)
commitc3c592ef95ee21833e2214fb9068889dcac220c9 (patch)
tree6772b21ff5964ab2227d5c7acb4246eaa9729152 /Documentation/technical
parent6784eb5ad93da15d24a5d111a3d6df618f98532f (diff)
parentb1b49ff8d42a21ade6a72b40a147fd3eaff3db8d (diff)
downloadgit-c3c592ef95ee21833e2214fb9068889dcac220c9.zip
git-c3c592ef95ee21833e2214fb9068889dcac220c9.tar.gz
git-c3c592ef95ee21833e2214fb9068889dcac220c9.tar.bz2
Merge branch 'rs/daemon-plug-child-leak'
"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/technical')
-rw-r--r--Documentation/technical/api-run-command.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/technical/api-run-command.txt b/Documentation/technical/api-run-command.txt
index a9fdb45..8bf3e37 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