Skip to content

Commit

Permalink
update gevent, so that need to change the function name from gevent.s…
Browse files Browse the repository at this point in the history
…ignal to gevent.signal_handler
  • Loading branch information
jiankai committed Nov 29, 2020
1 parent 63015e4 commit 6a4df38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions januscloud/sentinel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ def stop_sentinel():
_terminated = True
rest_server.stop()

gevent.signal(signal.SIGTERM, stop_sentinel)
gevent.signal(signal.SIGQUIT, stop_sentinel)
gevent.signal(signal.SIGINT, stop_sentinel)
gevent.signal_handler(signal.SIGTERM, stop_sentinel)
gevent.signal_handler(signal.SIGQUIT, stop_sentinel)
gevent.signal_handler(signal.SIGINT, stop_sentinel)

rest_server.serve_forever()

Expand Down

0 comments on commit 6a4df38

Please sign in to comment.