mirror of
https://github.com/Lost-MSth/Arcaea-server.git
synced 2026-02-11 10:27:27 +08:00
Try to fix a bug in Unix
multiprocess bug of python in Unix operating system: The subprocess will not start when using 'fork' mode. This will make the UDP server down.
This commit is contained in:
@@ -20,7 +20,7 @@ import server.arclinkplay
|
||||
from udpserver.udp_main import link_play
|
||||
import os
|
||||
import sys
|
||||
from multiprocessing import Process, Pipe
|
||||
from multiprocessing import Process, Pipe, set_start_method
|
||||
|
||||
|
||||
from urllib.parse import parse_qs, urlparse
|
||||
@@ -899,6 +899,7 @@ def main():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
set_start_method("spawn")
|
||||
main()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user