From faaef9d9f8b6341bab23bf187aa9518e0b6d4504 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Thu, 22 Aug 2019 20:51:36 +0200 Subject: [PATCH] let's be nice --- owrx/wsjt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/wsjt.py b/owrx/wsjt.py index e18257e..4542cf8 100644 --- a/owrx/wsjt.py +++ b/owrx/wsjt.py @@ -78,7 +78,7 @@ class WsjtChopper(threading.Thread): def decode(self): def decode_and_unlink(file): - decoder = subprocess.Popen(self.decoder_commandline(file), stdout=subprocess.PIPE, cwd=self.tmp_dir) + decoder = subprocess.Popen(self.decoder_commandline(file), stdout=subprocess.PIPE, cwd=self.tmp_dir, preexec_fn=lambda : os.nice(10)) while True: line = decoder.stdout.readline() if line is None or (isinstance(line, bytes) and len(line) == 0):