Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
4469ef5e
Commit
4469ef5e
authored
9 years ago
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement restore_signals.
parent
009d7743
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
gevent/subprocess.py
gevent/subprocess.py
+8
-0
greentest/patched_tests_setup.py
greentest/patched_tests_setup.py
+0
-3
No files found.
gevent/subprocess.py
View file @
4469ef5e
...
...
@@ -1009,6 +1009,14 @@ class Popen(object):
except
:
pass
if
restore_signals
:
# restore the documented signals back to sig_dfl;
# not all will be defined on every platform
for
sig
in
'SIGPIPE'
,
'SIGXFZ'
,
'SIGXFSZ'
:
sig
=
getattr
(
signal
,
sig
,
None
)
if
sig
is
not
None
:
signal
.
signal
(
sig
,
signal
.
SIG_DFL
)
if
env
is
None
:
os
.
execvp
(
executable
,
args
)
else
:
...
...
This diff is collapsed.
Click to expand it.
greentest/patched_tests_setup.py
View file @
4469ef5e
...
...
@@ -218,9 +218,6 @@ if sys.version_info[:2] >= (3, 4):
# Our monkey patch waits for the process with a watcher and so detects
# the exit before the normal polling mechanism would
'test_subprocess.POSIXProcessTestCase.test_restore_signals'
,
# XXX: We don't implement the restore_signals option yet
'test_subprocess.POSIXProcessTestCase.test_start_new_session'
,
# XXX: We don't implement the start_new_session option yet
...
...
This diff is collapsed.
Click to expand it.
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