diff --git a/locust/main.py b/locust/main.py index a0660dd010..95b4a3d67b 100644 --- a/locust/main.py +++ b/locust/main.py @@ -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)