From 9e9318a3f1ab207bc091ce15fed3acc182d2692c Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 6 Apr 2007 22:03:28 +0000 Subject: [PATCH] use spawn instead of fork/exec/wait --- tools/qfcc/source/qfpreqcc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/qfcc/source/qfpreqcc b/tools/qfcc/source/qfpreqcc index ce2521b1d..b25298747 100755 --- a/tools/qfcc/source/qfpreqcc +++ b/tools/qfcc/source/qfpreqcc @@ -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)