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
0ebe9d1e
Commit
0ebe9d1e
authored
Dec 06, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip sigchld test on windows [skip ci]
parent
20cd54fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
+25
-22
greentest/test__monkey_sigchld_2.py
greentest/test__monkey_sigchld_2.py
+25
-22
No files found.
greentest/test__monkey_sigchld_2.py
View file @
0ebe9d1e
...
...
@@ -15,18 +15,19 @@ def handle(*args):
# This is the opposite of gunicorn.
os
.
waitpid
(
-
1
,
os
.
WNOHANG
)
# The signal watcher must be installed *before* monkey patching
signal
.
signal
(
signal
.
SIGCHLD
,
handle
)
if
hasattr
(
signal
,
'SIGCHLD'
):
signal
.
signal
(
signal
.
SIGCHLD
,
handle
)
pid
=
os
.
fork
()
pid
=
os
.
fork
()
if
pid
:
# parent
if
pid
:
# parent
try
:
_
,
stat
=
os
.
waitpid
(
pid
,
0
)
except
OSError
:
# Interrupted system call
_
,
stat
=
os
.
waitpid
(
pid
,
0
)
assert
stat
==
0
,
stat
else
:
else
:
import
gevent.monkey
gevent
.
monkey
.
patch_all
()
signal
.
signal
(
signal
.
SIGCHLD
,
signal
.
SIG_DFL
)
...
...
@@ -40,3 +41,5 @@ else:
f
.
close
()
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