summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-04-19 16:13:22 -0700
committerJunio C Hamano <gitster@pobox.com>2017-04-20 17:55:32 -0700
commitae25394b4c21f072f176ccbaf7047abe7fa5f04d (patch)
treec04504f47cb2a5e3657e4e4d9aaeb4f240c5300c /help.c
parent3a30033327337323e91dcbcb87396d3245260585 (diff)
downloadgit-ae25394b4c21f072f176ccbaf7047abe7fa5f04d.tar.gz
run-command: prepare child environment before forking
In order to avoid allocation between 'fork()' and 'exec()' prepare the environment to be used in the child process prior to forking. Switch to using 'execve()' so that the construct child environment can used in the exec'd process. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
0 files changed, 0 insertions, 0 deletions