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:
parent
a62c84a954
commit
c7430d805a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user