[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
- Previous message: [Python-checkins] python/dist/src/Lib/test regrtest.py, 1.171, 1.172 test_ioctl.py, 1.2, 1.3
- Next message: [Python-checkins] python/dist/src/Modules grpmodule.c, 2.22, 2.23 makexp_aix, 2.2, 2.3 pwdmodule.c, 1.39, 1.40 signalmodule.c, 2.76, 2.77 socketmodule.c, 1.312, 1.313 socketmodule.h, 1.12, 1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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()
- Previous message: [Python-checkins] python/dist/src/Lib/test regrtest.py, 1.171, 1.172 test_ioctl.py, 1.2, 1.3
- Next message: [Python-checkins] python/dist/src/Modules grpmodule.c, 2.22, 2.23 makexp_aix, 2.2, 2.3 pwdmodule.c, 1.39, 1.40 signalmodule.c, 2.76, 2.77 socketmodule.c, 1.312, 1.313 socketmodule.h, 1.12, 1.13
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list