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
0426128b
Commit
0426128b
authored
Sep 01, 2000
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repaired damaged comments, and extra spaces in fatal error msgs we'd better
not ever see!
parent
2ddd5281
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Modules/posixmodule.c
Modules/posixmodule.c
+7
-6
No files found.
Modules/posixmodule.c
View file @
0426128b
...
...
@@ -2726,13 +2726,13 @@ static int _PyPclose(FILE *file)
* an exception. Just die.
*/
Py_FatalError
(
"unable to allocate interpreter state "
"
when closing popen object."
);
"when closing popen object."
);
return
-
1
;
/* unreachable */
}
pThreadState
=
PyThreadState_New
(
pInterpreterState
);
if
(
!
pThreadState
)
{
Py_FatalError
(
"unable to allocate thread state "
"
when closing popen object."
);
"when closing popen object."
);
return
-
1
;
/* unreachable */
}
/* Grab the global lock. Note that this will deadlock if the
...
...
@@ -2802,9 +2802,9 @@ static int _PyPclose(FILE *file)
#ifdef WITH_THREAD
/* Tear down the thread & interpreter states.
* Note that interpreter state clear & delete functions automatically
* call the thread
& clear functions, and * indeed insist on doing
*
that themselves. The lock must be held during the clear, but need
* not be held during the delete.
* call the thread
clear & delete functions, and indeed insist on
*
doing that themselves. The lock must be held during the clear, but
* n
eed n
ot be held during the delete.
*/
PyInterpreterState_Clear
(
pInterpreterState
);
PyEval_ReleaseThread
(
pThreadState
);
...
...
@@ -2813,7 +2813,8 @@ static int _PyPclose(FILE *file)
return
result
;
}
#else
#else
/* which OS? */
static
PyObject
*
posix_popen
(
PyObject
*
self
,
PyObject
*
args
)
{
...
...
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