Fix viewer lockups when launching from GUI

This commit is contained in:
Kovid Goyal 2008-03-25 02:51:07 +00:00
parent 4c30684322
commit e799f2c76f

View File

@ -112,11 +112,8 @@ class Server(object):
cmd = prefix + 'from libprs500.parallel import run_job; run_job(\'%s\')'%binascii.hexlify(job_data) cmd = prefix + 'from libprs500.parallel import run_job; run_job(\'%s\')'%binascii.hexlify(job_data)
if not monitor: if not monitor:
p = popen([python, '-c', cmd], stdout=subprocess.PIPE, stdin=subprocess.PIPE, popen([python, '-c', cmd], stdout=subprocess.PIPE, stdin=subprocess.PIPE,
stderr=subprocess.PIPE) stderr=subprocess.PIPE)
p.stdout.close()
p.stdin.close()
p.stderr.close()
return return
output = open(os.path.join(job_dir, 'output.txt'), 'wb') output = open(os.path.join(job_dir, 'output.txt'), 'wb')