From c7430d805a0d032f52dc562fb775345dfd0bb5f8 Mon Sep 17 00:00:00 2001 From: Ashley Sommer Date: Mon, 29 Jun 2020 20:51:55 +1000 Subject: [PATCH] Revert change to multiprocessing mode (#1884) Revert change to multiprocessing mode accidentally included in https://github.com/huge-success/sanic/pull/1853 Co-authored-by: Adam Hopkins --- sanic/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/server.py b/sanic/server.py index 6f64ddb8..6adf5dde 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -1063,7 +1063,7 @@ def serve_multiple(server_settings, workers): signal_func(SIGINT, lambda s, f: sig_handler(s, f)) signal_func(SIGTERM, lambda s, f: sig_handler(s, f)) - mp = multiprocessing.get_context("spawn") + mp = multiprocessing.get_context("fork") for _ in range(workers): process = mp.Process(target=serve, kwargs=server_settings)