fix readline problem
This commit is contained in:
parent
8fe9bf6292
commit
b5c5bcb9f1
@ -150,7 +150,7 @@ class WsjtChopper(threading.Thread):
|
|||||||
decoder = subprocess.Popen(
|
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)
|
||||||
)
|
)
|
||||||
for line in decoder.stdout.readline():
|
for line in decoder.stdout:
|
||||||
self.outputWriter.send(line)
|
self.outputWriter.send(line)
|
||||||
try:
|
try:
|
||||||
rc = decoder.wait(timeout=10)
|
rc = decoder.wait(timeout=10)
|
||||||
|
Loading…
Reference in New Issue
Block a user