use spawn instead of fork/exec/wait

This commit is contained in:
Bill Currie 2007-04-06 22:03:28 +00:00 committed by Jeff Teunissen
parent bc1c68dd89
commit 9e9318a3f1

View file

@ -287,10 +287,7 @@ if not verbose:
if not use_cpp:
args = ["-C", "no-cpp"] + args
args = ["qfcc"] + args
if not os.fork():
os.execvp ("qfcc", args)
else:
os.wait()
os.spawnvp (os.P_WAIT, "qfcc", args)
if not no_delete:
for l in qcc_list:
os.unlink (l)