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 <admhpkns@gmail.com>
This commit is contained in:
Ashley Sommer 2020-06-29 20:51:55 +10:00 committed by GitHub
parent a62c84a954
commit c7430d805a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)