freebsd-dev/sbin/init
Corvin Köhne 203f2c14c4 init: fix shutdown race
When calling shutdown, shutdown sends a signal to init and exits. This
causes a race condition for the waitpid function. If the signal wins the
race, wpid will be set to -1 and init calls death_single. If shutdown
wins the race, wpid will be set to the pid of the shutdown process and
the requested_transition will be ignored.

Reviewed by:		imp
Differential Revision:	https://reviews.freebsd.org/D36356
MFC after:		1 week
Sponsored by:		Beckhoff Automation GmbH & Co. KG
2022-09-06 09:06:51 +02:00
..
init.8 init: execute /etc/rc.final after all user processes have terminated 2021-07-22 23:26:11 -05:00
init.c init: fix shutdown race 2022-09-06 09:06:51 +02:00
Makefile etc/ttys: merge ttys file down to single file 2021-07-06 11:53:10 -03:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
NOTES
pathnames.h init: execute /etc/rc.final after all user processes have terminated 2021-07-22 23:26:11 -05:00
ttys etc/ttys: add xen console 2021-07-06 11:53:10 -03:00