opnsense-src/sbin/init
Corvin Köhne 810fe03349
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

(cherry picked from commit 203f2c14c4)
2022-12-06 15:41:34 +01:00
..
init.8 init: execute /etc/rc.final after all user processes have terminated 2021-08-26 01:42:00 -05:00
init.c init: fix shutdown race 2022-12-06 15:41:34 +01:00
Makefile etc/ttys: merge ttys file down to single file 2021-07-21 13:05:01 -03:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
NOTES BSD 4.4 Lite sbin Sources 1994-05-26 06:35:07 +00:00
pathnames.h init: execute /etc/rc.final after all user processes have terminated 2021-08-26 01:42:00 -05:00
ttys etc/ttys: add xen console 2021-07-21 13:07:34 -03:00