From c93fba9f39a58798bddbf3d3f4e598d7427c9ed1 Mon Sep 17 00:00:00 2001 From: PL Date: Tue, 14 Apr 2020 12:39:57 +0200 Subject: [PATCH] Update main.py about gevent.signal() For update in gevent 1.5.0(https://github.com/gevent/gevent/issues/1529), the usage of gevent.signal() should also be updated. --- locust/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)