avoid preexec_fn (something's leaky there)
This commit is contained in:
parent
79ab37e6a0
commit
ea5b5dc8fb
@ -149,10 +149,9 @@ class WsjtChopper(threading.Thread):
|
|||||||
|
|
||||||
def decode(self, file):
|
def decode(self, file):
|
||||||
decoder = subprocess.Popen(
|
decoder = subprocess.Popen(
|
||||||
self.decoder_commandline(file),
|
["nice", "-n", "10"] + self.decoder_commandline(file),
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
cwd=self.tmp_dir,
|
cwd=self.tmp_dir,
|
||||||
preexec_fn=lambda: os.nice(10),
|
|
||||||
close_fds=True,
|
close_fds=True,
|
||||||
)
|
)
|
||||||
for line in decoder.stdout:
|
for line in decoder.stdout:
|
||||||
|
Loading…
Reference in New Issue
Block a user