seems like this fixes the starvation of workers

This commit is contained in:
Jakob Ketterl 2020-01-02 19:35:58 +01:00
parent 42828dbf65
commit de958ca091

View File

@ -148,7 +148,11 @@ class WsjtChopper(threading.Thread):
def decode(self, file):
decoder = subprocess.Popen(
self.decoder_commandline(file), stdout=subprocess.PIPE, cwd=self.tmp_dir, preexec_fn=lambda: os.nice(10)
self.decoder_commandline(file),
stdout=subprocess.PIPE,
cwd=self.tmp_dir,
preexec_fn=lambda: os.nice(10),
close_fds=True,
)
for line in decoder.stdout:
self.outputWriter.send(line)