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
6502841d
Commit
6502841d
authored
Sep 01, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't try to run SIGCHLD test on win32
parent
2cd690c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
13 deletions
+16
-13
greentest/test__monkey_sigchld.py
greentest/test__monkey_sigchld.py
+16
-13
No files found.
greentest/test__monkey_sigchld.py
View file @
6502841d
...
...
@@ -19,18 +19,21 @@ def handle_sigchld(*args):
raise
TypeError
(
"This should be ignored but printed"
)
import
signal
assert
signal
.
getsignal
(
signal
.
SIGCHLD
)
==
signal
.
SIG_DFL
signal
.
signal
(
signal
.
SIGCHLD
,
handle_sigchld
)
handler
=
signal
.
getsignal
(
signal
.
SIGCHLD
)
assert
signal
.
getsignal
(
signal
.
SIGCHLD
)
is
handle_sigchld
,
handler
if
hasattr
(
signal
,
'SIGCHLD'
):
assert
signal
.
getsignal
(
signal
.
SIGCHLD
)
==
signal
.
SIG_DFL
signal
.
signal
(
signal
.
SIGCHLD
,
handle_sigchld
)
handler
=
signal
.
getsignal
(
signal
.
SIGCHLD
)
assert
signal
.
getsignal
(
signal
.
SIGCHLD
)
is
handle_sigchld
,
handler
pid
=
os
.
fork
()
if
not
pid
:
pid
=
os
.
fork
()
if
not
pid
:
# child
gevent
.
sleep
(
0.2
)
sys
.
exit
(
0
)
else
:
else
:
with
gevent
.
Timeout
(
1
):
while
awaiting_child
:
gevent
.
sleep
(
0.01
)
sys
.
exit
(
0
)
else
:
print
(
"No SIGCHLD, not testing"
)
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