mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
- 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).
This commit is contained in:
parent
539c662f10
commit
8ee3e5aa93
11 changed files with 106 additions and 51 deletions
|
@ -260,6 +260,18 @@ unlock_import(void)
|
|||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue