Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
wanli
evm-store
Commits
ca144cb6
Commit
ca144cb6
authored
Mar 14, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新start.py,删除signal控制应用退出机制
parent
4e6fafbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
backend/start.py
backend/start.py
+6
-6
No files found.
backend/start.py
View file @
ca144cb6
...
...
@@ -49,13 +49,13 @@ def start():
print
(
config
[
'LOGO'
])
print
(
"server running at
%
s:
%
d"
%
(
config
[
'HOST'
],
port
))
if
sys
.
platform
==
"linux"
:
# 子进程退出后向父进程发送的信号
signal
.
signal
(
signal
.
SIGCHLD
,
terminal_application
)
#
if sys.platform == "linux":
#
# 子进程退出后向父进程发送的信号
#
signal.signal(signal.SIGCHLD, terminal_application)
# 主进程退出信号
signal
.
signal
(
signal
.
SIGINT
,
terminal_application
)
signal
.
signal
(
signal
.
SIGTERM
,
terminal_application
)
#
#
主进程退出信号
#
signal.signal(signal.SIGINT, terminal_application)
#
signal.signal(signal.SIGTERM, terminal_application)
IOLoop
.
instance
()
.
start
()
...
...
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