From fb160b071cd7be9cfb6d519cfa4261eb67ade92d Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Mon, 4 Nov 2019 10:16:59 -0800 Subject: [PATCH] fixup! Fix a race between isc_nm_start and nm_thread --- lib/isc/netmgr/netmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/isc/netmgr/netmgr.c b/lib/isc/netmgr/netmgr.c index 1a8993a5f1..816d936f90 100644 --- a/lib/isc/netmgr/netmgr.c +++ b/lib/isc/netmgr/netmgr.c @@ -114,8 +114,8 @@ isc_nm_start(isc_mem_t *mctx, uint32_t workers) { worker->ievents = isc_queue_new(mgr->mctx, 128); /* - * We need to do it here and not in nm_thread to avoid a - * race - we could exit isc_nm_start, launch nm_destroy + * We need to do this here and not in nm_thread to avoid a + * race - we could exit isc_nm_start, launch nm_destroy, * and nm_thread would still not be up. */ atomic_fetch_add_explicit(&mgr->workers_running, 1,