From ea5b5dc8fb0ae9c63d1ad5aea8110df5664ca45d Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Fri, 17 Jan 2020 12:17:15 +0000 Subject: [PATCH] avoid preexec_fn (something's leaky there) --- owrx/wsjt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/owrx/wsjt.py b/owrx/wsjt.py index 16d1a73..4818201 100644 --- a/owrx/wsjt.py +++ b/owrx/wsjt.py @@ -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: