Skip to content

Commit

Permalink
Merge pull request #1326 from YUFEIZED/patch-1
Browse files Browse the repository at this point in the history
Use gevent.signal_handler instead of deprecated gevent.signal
  • Loading branch information
heyman authored Apr 14, 2020
2 parents 5844fd5 + c93fba9 commit bce7ca9
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 bce7ca9

Please sign in to comment.