mirror of https://gitlab.com/ita1024/waf.git
Close process.py for running processes - Issue 1735
This commit is contained in:
parent
e77b8dc24b
commit
bc3915c90a
|
@ -805,7 +805,7 @@ def get_process():
|
|||
return process_pool.pop()
|
||||
except IndexError:
|
||||
filepath = os.path.dirname(os.path.abspath(__file__)) + os.sep + 'processor.py'
|
||||
cmd = [sys.executable, filepath]
|
||||
cmd = [sys.executable, '-c', readf(filepath)]
|
||||
return subprocess.Popen(cmd, stdout=subprocess.PIPE, stdin=subprocess.PIPE, bufsize=0)
|
||||
|
||||
def run_prefork_process(cmd, kwargs, cargs):
|
||||
|
|
Loading…
Reference in New Issue