summaryrefslogtreecommitdiff
path: root/src/ne_socket.c
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2011-10-03 21:41:51 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2011-10-03 21:41:51 +0000
commit1783921651bd1a80ee755a08873a1a2540c5acc7 (patch)
tree2fc32d1011c3e5c58e10b64ef27c5e995a7a06d7 /src/ne_socket.c
parentfa16e3bd6333b9ccbe9aef1a7ef7ebb57c3e697c (diff)
downloadneon-1783921651bd1a80ee755a08873a1a2540c5acc7.tar.gz
* src/ne_socket.c: Tweak comment.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1861 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_socket.c')
-rw-r--r--src/ne_socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ne_socket.c b/src/ne_socket.c
index 8f11d64..443eb5c 100644
--- a/src/ne_socket.c
+++ b/src/ne_socket.c
@@ -1387,7 +1387,9 @@ static int do_bind(int fd, int peer_family,
#ifdef SOCK_CLOEXEC
/* sock_cloexec is initialized to SOCK_CLOEXEC and cleared to zero if
- * a socket() call ever fails with EINVAL. */
+ * a socket() call ever fails with EINVAL; not strictly thread-safe
+ * but in practice it will not matter if two threads race accessing
+ * the variable. */
static int sock_cloexec = SOCK_CLOEXEC;
#define RETRY_ON_EINVAL
#else