[Python-checkins] python/dist/src/Python import.c, 2.240.2.1, 2.240.2.2
gvanrossum@users.sourceforge.net
gvanrossum at users.sourceforge.net
Wed Sep 14 20:15:06 CEST 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24791/Python
Modified Files:
Tag: release24-maint
import.c
Log Message:
- Changes donated by Elemental Security to make it work on AIX 5.3
with IBM's 64-bit compiler (SF patch #1284289). This also closes SF
bug #105470: test_pwd fails on 64bit system (Opteron).
Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.240.2.1
retrieving revision 2.240.2.2
diff -u -d -r2.240.2.1 -r2.240.2.2
--- import.c 14 Sep 2005 06:56:51 -0000 2.240.2.1
+++ import.c 14 Sep 2005 18:15:03 -0000 2.240.2.2
@@ -259,6 +259,18 @@
return 1;
}
+/* This function is called from PyOS_AfterFork to ensure that newly
+ created child processes do not share locks with the parent. */
+
+void
+_PyImport_ReInitLock(void)
+{
+#ifdef _AIX
+ if (import_lock != NULL)
+ import_lock = PyThread_allocate_lock();
+#endif
+}
+
#else
#define lock_import()
More information about the Python-checkins
mailing list