aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2017-08-04 10:28:09 -0700
committerGravatar GitHub <noreply@github.com>2017-08-04 10:28:09 -0700
commit26e6f72f177e8f056f57a477946af1f0e7b56d3e (patch)
treebd08eebaf2d96b969e19faa9ec37e93c380aad95
parent09798bc3d682cae9a5fb160ae707a4cbbd5dd130 (diff)
parent1901254b84d7701dec18fd27b104fd07a961fde1 (diff)
Merge pull request #11990 from pgonda/patch-2
Update tcp_server_utils_posix_common with GPR_ONCE_INIT
-rw-r--r--src/core/lib/iomgr/tcp_server_utils_posix_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_server_utils_posix_common.c b/src/core/lib/iomgr/tcp_server_utils_posix_common.c
index dbb43186bd..ad535bc43e 100644
--- a/src/core/lib/iomgr/tcp_server_utils_posix_common.c
+++ b/src/core/lib/iomgr/tcp_server_utils_posix_common.c
@@ -39,7 +39,7 @@
#define MIN_SAFE_ACCEPT_QUEUE_SIZE 100
-static gpr_once s_init_max_accept_queue_size;
+static gpr_once s_init_max_accept_queue_size = GPR_ONCE_INIT;
static int s_max_accept_queue_size;
/* get max listen queue size on linux */