]> git.ipfire.org Git - thirdparty/bind9.git/commit
Get rid of locking during UDP and TCP listen
authorOndřej Surý <ondrej@isc.org>
Wed, 4 Jan 2023 11:21:00 +0000 (12:21 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 11 Jan 2023 06:17:46 +0000 (07:17 +0100)
commitd06602f03622bff11d081c2c6d359bd347e00754
tree9cc9a04ca5bbb6db87eceaf95381bc39ca14a2a3
parent7900cbd9a97a0290df292d589a5912f804f69ac7
Get rid of locking during UDP and TCP listen

We already have a synchronization mechanism when starting the UDP and
TCP listener children - barriers.  Change how we start the first-born
child (tid == 0), so we don't have to race for sock->parent->result and
sock->parent->fd.
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/udp.c