We start off in sysinit correctly.

This commit is contained in:
Roy Marples 2008-11-04 00:21:30 +00:00
parent 32e17af92f
commit 33d4fba5be

View File

@ -856,11 +856,14 @@ main(int argc, char **argv)
signal_setup(SIGUSR1, handle_signal); signal_setup(SIGUSR1, handle_signal);
signal_setup(SIGWINCH, handle_signal); signal_setup(SIGWINCH, handle_signal);
rc_plugin_load();
/* Run any special sysinit foo */ /* Run any special sysinit foo */
if (newlevel && strcmp(newlevel, RC_LEVEL_SYSINIT) == 0) if (newlevel && strcmp(newlevel, RC_LEVEL_SYSINIT) == 0) {
do_sysinit(); do_sysinit();
free(runlevel);
runlevel = rc_runlevel_get();
}
rc_plugin_load();
/* Now we start handling our children */ /* Now we start handling our children */
signal_setup(SIGCHLD, handle_signal); signal_setup(SIGCHLD, handle_signal);