]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc.subr: Eliminate about 100 forks from the boot sequence.
authorJilles Tjoelker <jilles@FreeBSD.org>
Sat, 18 Jun 2011 11:05:30 +0000 (11:05 +0000)
committerJilles Tjoelker <jilles@FreeBSD.org>
Sat, 18 Jun 2011 11:05:30 +0000 (11:05 +0000)
commitcfb739b8549cc4d7afe866f2bd1068828eed715a
treef934c4c0b3fda5273c96e18d9fdab0657ad381ae
parent4a58eccc5b962073f60781892a69f2f54d503709
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.

MFC after: 2 weeks
etc/rc.subr