10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-22 04:13:33 +01:00

Bug with recent versions of Python

Version:1.1.60
This commit is contained in:
Anthony Scemama 2011-01-19 21:49:49 +01:00
parent b9849d2700
commit 7431c67309

View File

@ -158,11 +158,11 @@ def parallel_loop(f,source):
file.close() file.close()
if fork == 0: if fork == 0:
sys.exit(0) os._exit(0)
for i in xrange(1,NTHREADS): for i in xrange(1,NTHREADS):
if os.waitpid(pidlist[i],0)[1] != 0: if os.waitpid(pidlist[i],0)[1] != 0:
sys.exit(0) os._exit(0)
result = [] result = []
for filename,text in source: for filename,text in source: