Skip to content

Commit

Permalink
Update main.py about gevent.signal()
Browse files Browse the repository at this point in the history
For update in gevent 1.5.0(gevent/gevent#1529), the usage of gevent.signal() should also be updated.
  • Loading branch information
test-bai-cpu authored Apr 14, 2020
1 parent 5844fd5 commit c93fba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def shutdown(code=0):
def sig_term_handler():
logger.info("Got SIGTERM signal")
shutdown(0)
gevent.signal(signal.SIGTERM, sig_term_handler)
gevent.signal_handler(signal.SIGTERM, sig_term_handler)

try:
logger.info("Starting Locust %s" % version)
Expand Down

0 comments on commit c93fba9

Please sign in to comment.