diff options
author | kn <kn@cvs.openbsd.org> | 2021-07-21 03:53:51 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2021-07-21 03:53:51 +0000 |
commit | 17e91064c9228d1b955c0e8d789668165f9736d3 (patch) | |
tree | 3900a61840ff7da496b55dd6798daba92127422f /usr.bin/who | |
parent | f56d090408425024e77aa59eba7f28357ce99ea6 (diff) |
Use exclusive lock under /dev/, silence expected errors in installer
resolvd(8), slaacd(8) and dhcpleased(8) are different from other daemons
in that there must only be a single instance.
resolvd already does this, adjust slaacd and dhcpleased accordingly while
moving the lockfile paths under /dev/ such that they work early on boot and
don't run into races should /var be (un)mounted between daemon starts.
Locking is especially required in the installer where all three daemons are
started every time the "(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? "
prompt is entered, i.e. restarting installation or dropping into a shell
and back into the prompt again would start multiple instances.
To avoid expected lockfile error messages in between installer prompts,
discard standard error when starting the autoconf daemons; none of them
has other potential failure cases in installer mode before daemon(3)izing.
Input sthen deraadt
OK deraadt
Diffstat (limited to 'usr.bin/who')
0 files changed, 0 insertions, 0 deletions