Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
coco
Commits
f8a3846f
Commit
f8a3846f
authored
May 18, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修复child shutdown可能的bug
parent
17d01a8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
interactive.py
coco/interactive.py
+1
-1
models.py
coco/models.py
+5
-2
No files found.
coco/interactive.py
View file @
f8a3846f
...
...
@@ -263,7 +263,7 @@ class InteractiveServer:
self
.
display_banner
()
while
True
:
try
:
opt
=
net_input
(
self
.
client
,
prompt
=
'Opt>'
,
before
=
1
)
opt
=
net_input
(
self
.
client
,
prompt
=
'Opt>
'
,
before
=
1
)
rv
=
self
.
dispatch
(
opt
)
if
rv
is
self
.
_sentinel
:
break
...
...
coco/models.py
View file @
f8a3846f
...
...
@@ -264,8 +264,11 @@ class WSProxy:
def
close
(
self
):
self
.
stop_event
.
set
()
self
.
child
.
shutdown
(
1
)
self
.
child
.
close
()
try
:
self
.
child
.
shutdown
(
1
)
self
.
child
.
close
()
except
OSError
:
pass
logger
.
debug
(
"Proxy {} closed"
.
format
(
self
))
...
...
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