mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
use spawn instead of fork/exec/wait
This commit is contained in:
parent
bc1c68dd89
commit
9e9318a3f1
1 changed files with 1 additions and 4 deletions
|
@ -287,10 +287,7 @@ if not verbose:
|
||||||
if not use_cpp:
|
if not use_cpp:
|
||||||
args = ["-C", "no-cpp"] + args
|
args = ["-C", "no-cpp"] + args
|
||||||
args = ["qfcc"] + args
|
args = ["qfcc"] + args
|
||||||
if not os.fork():
|
os.spawnvp (os.P_WAIT, "qfcc", args)
|
||||||
os.execvp ("qfcc", args)
|
|
||||||
else:
|
|
||||||
os.wait()
|
|
||||||
if not no_delete:
|
if not no_delete:
|
||||||
for l in qcc_list:
|
for l in qcc_list:
|
||||||
os.unlink (l)
|
os.unlink (l)
|
||||||
|
|
Loading…
Reference in a new issue