diff options
author | 2016-09-03 16:22:17 +0000 | |
---|---|---|
committer | 2016-09-03 16:22:17 +0000 | |
commit | 51512aa9ed17e49d6e8cbedfb86ca21e57952312 (patch) | |
tree | cf9faf28a674361b84946c445c0d0abdf74531af /lib/libcxx/src/experimental/filesystem/operations.cpp | |
parent | The iwm code was torn between 'error' and 'err'; error -> err everywhere (diff) | |
download | wireguard-openbsd-51512aa9ed17e49d6e8cbedfb86ca21e57952312.tar.xz wireguard-openbsd-51512aa9ed17e49d6e8cbedfb86ca21e57952312.zip |
Simplify shutdown process.
On shutdown, there's no need to use kill(2) to kill the child
processes. Just closing the IPC sockets will make the children receive
an EOF, break out from the event loop and then exit.
Tha advantages of this "pipe teardown" are:
* simpler code;
* no need to pledge "proc" in the parent process;
* removal of a (hard to trigger) PID reuse race condition.
ok benno@ claudio@
Diffstat (limited to 'lib/libcxx/src/experimental/filesystem/operations.cpp')
0 files changed, 0 insertions, 0 deletions