Date: Sun, 23 Jan 2011 14:22:26 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sbin/init init.c Message-ID: <201101231422.p0NEMcsf094267@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-01-23 14:22:26 UTC
FreeBSD src repository
Modified files:
sbin/init init.c
Log:
SVN rev 217750 on 2011-01-23 14:22:26Z by jilles
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@
Revision Changes Path
1.72 +35 -10 src/sbin/init/init.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101231422.p0NEMcsf094267>
