]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r223227: rc.subr: Eliminate about 100 forks from the boot sequence.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jul 2011 16:32:03 +0000 (16:32 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 3 Jul 2011 16:32:03 +0000 (16:32 +0000)
commitab3d90eebaf8bad3dcfcd5161a1e5e9b9ebcb865
treee4065ac07f55d2abfb57c5e0f8763a842c2a8a36
parent4af7454445d2ba47432f40554dae8b6b60992c16
MFC r223227: rc.subr: Eliminate about 100 forks from the boot sequence.

With the current sh, placing eval in a command substitution always results
in a fork(), even if it is the only command and only executes a single
simple command. Therefore, avoid it where it can be avoided easily.

Side effect: values starting with a hyphen and all whitespace are preserved.
The values are defaults and names for rc.conf variables and messages to be
given about obsolete ones.

The change in the _echoonce function is not included in this MFC because
stable/8 does not have this function.

git-svn-id: svn://svn.freebsd.org/base/stable/8@223742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/rc.subr