diff --git a/product/ERP5/bin/genbt5list b/product/ERP5/bin/genbt5list index c49c8c2b8dba224b894198d970a8eca24ebfcf09..81b1eb31cea5e797170ea02a74f9d6ac39ce9372 100755 --- a/product/ERP5/bin/genbt5list +++ b/product/ERP5/bin/genbt5list @@ -215,7 +215,8 @@ def main(dir_list=None, **kw): for d in dir_list: bt5list = generateInformation(d, **kw).getvalue() - d = os.path.join(d, 'bt5list.new') + # add pid in filename to avoid conflicts if several process calls genbt5list + d = os.path.join(d, 'bt5list.new.%i' % os.getpid()) try: with open(d, 'wb') as f: f.write(bt5list)