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
35023693
Commit
35023693
authored
Nov 19, 2016
by
Steve Dower
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #28732: Adds new errors to spawnv emulation for platforms that only have fork and execv
parent
5ab602a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/os.py
Lib/os.py
+4
-0
No files found.
Lib/os.py
View file @
35023693
...
...
@@ -832,6 +832,10 @@ if _exists("fork") and not _exists("spawnv") and _exists("execv"):
def
_spawnvef
(
mode
,
file
,
args
,
env
,
func
):
# Internal helper; func is the exec*() function to use
if
not
isinstance
(
args
,
(
tuple
,
list
)):
raise
TypeError
(
'argv must be a tuple or a list'
)
if
not
args
[
0
]:
raise
ValueError
(
'argv first element cannot be empty'
)
pid
=
fork
()
if
not
pid
:
# Child
...
...
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