summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2003-05-09 08:03:44 (GMT)
committerJust van Rossum <just@letterror.com>2003-05-09 08:03:44 (GMT)
commit09aecd7a0deeae8e7b8aaee9d9ee86aff6ddaea1 (patch)
tree959e35519b7ba25f55227f3dbbd99ac9984c4121 /Modules/socketmodule.c
parent1040d2ce7d75ab98a7f2b9d17b7e7e47372229f5 (diff)
downloadcpython-09aecd7a0deeae8e7b8aaee9d9ee86aff6ddaea1.zip
cpython-09aecd7a0deeae8e7b8aaee9d9ee86aff6ddaea1.tar.gz
cpython-09aecd7a0deeae8e7b8aaee9d9ee86aff6ddaea1.tar.bz2
Addition to [731644]: also use the lock when using the getaddrinfo
emulation (ie. when HAVE_GETADDRINFO isn't defined).
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e7e3c47..4447f09 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -141,9 +141,9 @@ shutdown(how) -- shut down traffic in one or both directions\n\
#endif
/* On systems on which getaddrinfo() is believed to not be thread-safe,
- protect access with a lock. */
+ (this includes the getaddrinfo emulation) protect access with a lock. */
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
- defined(__NetBSD__)
+ defined(__NetBSD__) || !defined(HAVE_GETADDRINFO)
#define USE_GETADDRINFO_LOCK
#endif