master thread should also do some work

This commit is contained in:
Peter Buchegger 2022-02-02 21:40:49 +01:00
parent b9d2177468
commit 37d0cd1628
1 changed files with 1 additions and 2 deletions

View File

@ -35,9 +35,8 @@ def master(options, trackDirectLogger):
site = Site(root)
port = reactor.listenTCP(config.websocketPort, site)
port.stopReading()
for i in range(options.workers):
for i in range(options.workers - 1):
args = [sys.executable, "-u", __file__]
args.extend(sys.argv[1:])
args.extend(["--fd", str(port.fileno()), "--cpuid", str(i)])