Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 29036:ccf7e138a126 legacy-trunk
Addition to [731644]: also use the lock when using the getaddrinfo
emulation (ie. when HAVE_GETADDRINFO isn't defined).
| author | Just van Rossum <just@letterror.com> |
|---|---|
| date | Fri, 09 May 2003 08:03:44 +0000 |
| parents | e1d5ca8ab7dc |
| children | db90843b00fc |
line wrap: on
line diff
--- a/Modules/socketmodule.c Fri May 09 07:53:18 2003 +0000 +++ b/Modules/socketmodule.c Fri May 09 08:03:44 2003 +0000 @@ -141,9 +141,9 @@ #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
