diff options
author | Corvin Köhne <CorvinK@beckhoff.com> | 2022-09-06 07:06:51 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2022-09-06 07:06:51 +0000 |
commit | 203f2c14c4b3c7a3e8f51a5a248201e1eb091886 (patch) | |
tree | 0b3a6600360a5d6fd809798a42ade0c90ed309b3 /secure | |
parent | 95270f73baf6fa95ae529bc2eb6a61f5c79f32c0 (diff) | |
download | src-203f2c14c4b3c7a3e8f51a5a248201e1eb091886.tar.gz src-203f2c14c4b3c7a3e8f51a5a248201e1eb091886.zip |
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
Diffstat (limited to 'secure')
0 files changed, 0 insertions, 0 deletions