multiprocess build creates race conditions in temp build directories

This commit is contained in:
wiredfool 2015-06-18 21:20:52 -07:00
parent 495d89b22a
commit 54d159bd42

View File

@ -1,6 +1,6 @@
#/usr/bin/env python3
import subprocess, multiprocessing
import subprocess
import shutil
import sys, getopt
import os
@ -106,11 +106,10 @@ def main(op):
compilers[(compiler_version, 64)]),
footer()])))
pool = multiprocessing.Pool()
results = pool.map(run_script, scripts)
results = map(run_script, scripts)
for (version, status, trace, err) in results:
print ("Compiled %s: %s" % (version, status))
print ("Compiled %s: %s" % (version, status and 'ERR' or 'OK'))
def run_one(op):