summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2021-02-24 18:34:14 +0000
committerflorian <florian@openbsd.org>2021-02-24 18:34:14 +0000
commitb121c2f30cec6477cc9fb0b0cfa350ab3e0db98d (patch)
treef65d4f1cbfbfb9f4501407d6ff3abcffcd972845 /lib/libc/stdlib/malloc.c
parentImport resold(8), a daemon to rewrite resolv.conf. (diff)
downloadwireguard-openbsd-b121c2f30cec6477cc9fb0b0cfa350ab3e0db98d.tar.xz
wireguard-openbsd-b121c2f30cec6477cc9fb0b0cfa350ab3e0db98d.zip
We need to track the pid of the connecting control connection to be
able to send answers back to the correct client in case two are connecting at the same time. We also need to pass the pid around to the resolver process so that it can hand it back to us. Debugged by deraadt and dlg who noticed that answers would always arrive on the first control connection. deraadt@ points out that tracking the pid is not the best choice in case one process wants to hold open two connections but at least this brings us in line with all the other privsep daemons with control tools. If we change this we should change it in all daemons.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions