freebsd-skq/sbin/init
jilles 681c5b70ec init: Only run /etc/rc.shutdown if /etc/rc was run.
It does not make sense to shut down daemons that were not started. In
particular, this fixes loss of mixer settings when shutting down using
shutdown(8), init(8) or ctrl+alt+del from single-user mode.

If /etc/rc reboots, /etc/rc.shutdown is not run.

Also fix segfaults and other erratic behaviour if init receives SIGHUP or
SIGTSTP while in single-user mode.

This commit does not attempt to fix any badness with signal handlers
(assumption that pointers can be read and written atomically, EINTR race
condition). I believe it does not make this badness any worse.

Silence on:	-arch@
2011-01-23 14:22:26 +00:00
..
init.8 Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
init.c init: Only run /etc/rc.shutdown if /etc/rc was run. 2011-01-23 14:22:26 +00:00
Makefile Migrate init(8) towards utmpx. 2010-01-13 17:58:49 +00:00
NOTES
pathnames.h