delphij's Chaos

选择chaos这个词是因为~~实在很难找到一个更合适的词来形容这儿了……

24 Sep 2004

Different _rc_subr_loaded approach adopted by FreeBSD and NetBSD

The RCng system was developed by NetBSD and FreeBSD have adopted it. _rc_subr_loaded is a flag that both system adopts to speed up the startup.

The FreeBSD approach is to determine whether to run for the whole rc.subr script, while NetBSD approach is to define it as a “:” so rc_subr won’t be loaded.

Which is better?

There is no easy answer. NetBSD’s approach is somewhat more efficient as rc.subr is not loaded at all, and FreeBSD’s approach is more easy for a developer writing their RCng script.

I personally prefer the FreeBSD approach.