[Python-checkins] CVS: python/dist/src/Modules socketmodule.c
Guido van Rossum
guido@cnri.reston.va.us
Mon, 22 Mar 1999 15:14:55 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/projects/python/develop/guido/src/Modules
Modified Files:
socketmodule.c
Log Message:
Jonathan Giddy writes:
Here's a patch to fix the race condition, which wasn't fixed by Rob's
patch. It holds the gethostbyname lock until the results are copied out,
which means that this lock and the Python global lock are held at the same
time. This shouldn't be a problem as long as the gethostbyname lock is
always acquired when the global lock is not held.