From ff7d654dd554546e55265906fe92d16f700549fd Mon Sep 17 00:00:00 2001 From: brummer10 Date: Mon, 2 May 2022 20:35:33 +0200 Subject: [PATCH] Fix race condition when build with Faust --- trunk/tools/dsp2cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/tools/dsp2cc b/trunk/tools/dsp2cc index becfb1089..2f1f672e1 100755 --- a/trunk/tools/dsp2cc +++ b/trunk/tools/dsp2cc @@ -6,6 +6,7 @@ try: from cStringIO import StringIO except ImportError: from io import StringIO +import subprocess from subprocess import Popen, PIPE from optparse import OptionParser from collections import OrderedDict @@ -658,7 +659,8 @@ class Parser(object): self.faust_opt.append(options.add); cmd ='../tools/dsp2insert -o /tmp/'+self.insert_p+'.py'+' '+' '.join(self.faust_opt)+' --init-type=insert ../src/faust/'+self.insert_p+'.dsp' # print('%s\n' % cmd) - os.system(cmd) + status = os.system(cmd) + os.wait() if self.numOutputs == 2: self.has_stereo = True if self.topname is None: