From: Just van Rossum Date: Fri, 9 May 2003 08:03:44 +0000 (+0000) Subject: Addition to [731644]: also use the lock when using the getaddrinfo X-Git-Tag: v2.3c1~796 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09aecd7a0deeae8e7b8aaee9d9ee86aff6ddaea1;p=python Addition to [731644]: also use the lock when using the getaddrinfo emulation (ie. when HAVE_GETADDRINFO isn't defined). --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e7e3c47802..4447f096b3 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