freebsd-src/share
Mateusz Piotrowski a5ad360ff9 rc: Remove rc_fast_and_loose
The rc_fast_and_loose variable allowed rc(8) to start services
by sourcing them into rc's own shell environment. Normally, each rc
service script is started by being sourced into its own subshell
instead.  The feature was meant to speed up rc(8) by avoiding the extra
forking necessary to spawn subshells.

In practice, the feature has been broken for a long time now. One of the
reasons is that some rc service scripts call the exit builtin to return
non-zero error codes, which not only terminates the service subshell
but also rc(8) when rc_fast_and_loose is enabled. For example,
a system running any of the supported FreeBSD releases
with rc_fast_and_loose=yes would abort rc(8) as early as rc.d/hostid,
due to an "exit 0".

Fixing rc_fast_and_loose support would require rewriting some rc scripts
to support being sourced directly into rc(8) process. This would muddy
the code base and also would prove difficult to maintain long term
as this is simply not how rc(8) users write scripts. The potential
performance benefits are unlikely to be significant even for use cases
such as Morello under qemu.

Instead, remove support for rc_fast_and_loose completely from rc(8)
and inform users about the change.

PR:		282255
Reviewed by:	brooks, christos, mhorne
Approved by:	christos (mentor), markj (mentor)
MFC after:	2 weeks
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D47264
2024-10-28 22:10:49 +01:00
..
colldef Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
colldef_unicode locales: update unicode version 16 and CLDR to version 45 2024-10-14 10:43:39 +02:00
ctypedef ctypedef: Remove || true from localedef command to reveal error sooner 2024-10-15 18:39:31 +08:00
dict Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
doc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
dtrace
examples sound examples: Delete stale ossinit.h file 2024-08-24 15:16:21 +03:00
i18n Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
keys Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
man rc: Remove rc_fast_and_loose 2024-10-28 22:10:49 +01:00
misc bsd-family-tree: add macOS 15 2024-10-15 20:52:01 -04:00
mk lib/libcrypt: unbundle hash functions 2024-10-25 16:02:38 +02:00
monetdef
monetdef_unicode locales: add missing af_ZA.UTF8 2024-10-14 11:56:30 +02:00
msgdef
msgdef_unicode
numericdef Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
numericdef_unicode locales: update unicode version 16 and CLDR to version 45 2024-10-14 10:43:39 +02:00
security Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
sendmail
skel Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
snmp Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
syscons Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tabset Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
termcap Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
timedef Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
vt Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
zoneinfo Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.inc Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00