avoid preexec_fn (something's leaky there)

This commit is contained in:
Jakob Ketterl 2020-01-17 12:17:15 +00:00
parent 79ab37e6a0
commit ea5b5dc8fb

View File

@ -149,10 +149,9 @@ class WsjtChopper(threading.Thread):
def decode(self, file):
decoder = subprocess.Popen(
self.decoder_commandline(file),
["nice", "-n", "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: