[Python-checkins] python/dist/src/Python import.c,2.243,2.244

gvanrossum@users.sourceforge.net gvanrossum at users.sourceforge.net
Wed Sep 14 20:09:45 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23292/Python
Modified Files:
	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.243
retrieving revision 2.244
diff -u -d -r2.243 -r2.244
--- import.c	14 Sep 2005 06:56:20 -0000	2.243
+++ import.c	14 Sep 2005 18:09:42 -0000	2.244
@@ -260,6 +260,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

AltStyle によって変換されたページ (->オリジナル) /