Skip to content

Commit

Permalink
Revert change to multiprocessing mode (#1884)
Browse files Browse the repository at this point in the history
Revert change to multiprocessing mode accidentally included in #1853

Co-authored-by: Adam Hopkins <[email protected]>
  • Loading branch information
ashleysommer and ahopkins authored Jun 29, 2020
1 parent a62c84a commit c7430d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ def sig_handler(signal, frame):

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)
Expand Down

0 comments on commit c7430d8

Please sign in to comment.