aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-06-01 08:45:25 +0100
committerRon Yorston <rmy@pobox.com>2020-06-01 08:45:25 +0100
commit8fdbb0564ddaf0361dff8a194a0329f86738343c (patch)
tree3a59046490115195cc25f2c1a1c888eaae775c2d /win32
parent3c5995713d91df7b6f803b34e43df188646b0676 (diff)
downloadbusybox-w32-8fdbb0564ddaf0361dff8a194a0329f86738343c.tar.gz
busybox-w32-8fdbb0564ddaf0361dff8a194a0329f86738343c.tar.bz2
busybox-w32-8fdbb0564ddaf0361dff8a194a0329f86738343c.zip
ash: don't initialise shell variables in forkshell child
The forkshell child process calls init(), which mostly just initialises shell variables. Since these variables are overwritten with values from the parent process there's no point in doing that. In particular, init() initialises HOSTNAME by calling gethostname() which involves network access and is slow. Avoid this cost when we know the shell is a forkshell child.
Diffstat (limited to 'win32')
0 files changed, 0 insertions, 0 deletions