Staging
v0.5.1
https://github.com/python/cpython
Revision 3baaa1375ba03cf2d7fa3af884d6a99294c2587a authored by Guido van Rossum on 22 March 1999, 21:44:51 UTC, committed by Guido van Rossum on 22 March 1999, 21:44:51 UTC
- Use HAVE_GETHOSTBYNAME_R_6_ARG instead of testing for Linux and
glibc2.

- If gethostbyname takes 3 args, undefine HAVE_GETHOSTBYNAME_R --
don't know what code should be used.

- New symbol USE_GETHOSTBYNAME_LOCK defined iff the lock should be used.

- Modify the gethostbyaddr() code to also hold on to the lock until
after it is safe to release, overlapping with the Python lock.

(Note: I think that it could in theory be possible that Python code
executed while gethostbyname_lock is held could attempt to reacquire
the lock -- e.g. in a signal handler or destructor.  I will simply say
"don't do that then.")
1 parent 955becc
History
Tip revision: 3baaa1375ba03cf2d7fa3af884d6a99294c2587a authored by Guido van Rossum on 22 March 1999, 21:44:51 UTC
Clean up pass for the previous patches.
Tip revision: 3baaa13
File Mode Size
BeOS
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.hgtags -rw-r--r-- 1.4 KB
Makefile.in -rw-r--r-- 17.9 KB
README -rw-r--r-- 36.1 KB
acconfig.h -rw-r--r-- 3.7 KB
config.h.in -rw-r--r-- 11.8 KB
configure -rwxr-xr-x 129.3 KB
configure.in -rw-r--r-- 23.3 KB
install-sh -rwxr-xr-x 2.2 KB

README

back to top