]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
privsep: Improve the race to exit
authorRoy Marples <roy@marples.name>
Tue, 6 Sep 2022 08:18:08 +0000 (09:18 +0100)
committerRoy Marples <roy@marples.name>
Tue, 6 Sep 2022 08:18:08 +0000 (09:18 +0100)
commit4627c5d80fd677531878a819d30ad9f6d385b50b
treee2c3b95c87750538c55120142366f5f46c0a3d08
parent8c54cd6abf838c3693a8b87cb173868fbbc9f5b3
privsep: Improve the race to exit

Each process should now cleanly wait for child processes to exit.
They should only exit when no children left.

There is still no way to cleanly log the privilged process exiting
as well as the manager process as the manager needs the
privilged process to log.

Now, at least, dhcpcd should alway say it's exited.
src/privsep-root.c
src/privsep.c
src/privsep.h