summaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-04-19 23:13:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-21 00:55:32 (GMT)
commitae25394b4c21f072f176ccbaf7047abe7fa5f04d (patch)
treec04504f47cb2a5e3657e4e4d9aaeb4f240c5300c /userdiff.c
parent3a30033327337323e91dcbcb87396d3245260585 (diff)
downloadgit-ae25394b4c21f072f176ccbaf7047abe7fa5f04d.zip
git-ae25394b4c21f072f176ccbaf7047abe7fa5f04d.tar.gz
git-ae25394b4c21f072f176ccbaf7047abe7fa5f04d.tar.bz2
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 'userdiff.c')
0 files changed, 0 insertions, 0 deletions