Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0ac2beb
Commit
e0ac2beb
authored
Apr 19, 2015
by
Christian Heimes
Browse files
Options
Browse Files
Download
Plain Diff
Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
parents
d6e53dab
418fd74f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
Misc/NEWS
Misc/NEWS
+5
-0
Python/import.c
Python/import.c
+5
-1
No files found.
Misc/NEWS
View file @
e0ac2beb
...
...
@@ -201,6 +201,11 @@ Build
-
Issue
#
23686
:
Update
OS
X
10.5
installer
and
Windows
builds
to
use
OpenSSL
1.0.2
a
.
C
API
-----
-
Issue
#
23998
:
PyImport_ReInitLock
()
now
checks
for
lock
allocation
error
What
's New in Python 3.4.3?
===========================
...
...
Python/import.c
View file @
e0ac2beb
...
...
@@ -207,8 +207,12 @@ _PyImport_ReleaseLock(void)
void
_PyImport_ReInitLock
(
void
)
{
if
(
import_lock
!=
NULL
)
if
(
import_lock
!=
NULL
)
{
import_lock
=
PyThread_allocate_lock
();
if
(
import_lock
==
NULL
)
{
Py_FatalError
(
"PyImport_ReInitLock failed to create a new lock"
);
}
}
if
(
import_lock_level
>
1
)
{
/* Forked as a side effect of import */
long
me
=
PyThread_get_thread_ident
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment