C: Fixed opened DIR leak

This commit is contained in:
Celine Mercier
2019-09-04 16:48:13 +02:00
parent b3a1011d36
commit 5e3c41b058
2 changed files with 54 additions and 6 deletions

View File

@ -23,6 +23,7 @@ from obitools3.dms.capi.obiview cimport NUC_SEQUENCE_COLUMN, \
import shutil
import string
import random
#import subprocess
VIEW_TYPES = [b"", b"NUC_SEQS_VIEW"]
@ -516,6 +517,10 @@ def run(config):
i+=1
if (i%(config['test']['nbtests']/10)) == 0 :
print("Testing......"+str(i*100/config['test']['nbtests'])+"%")
#lsof = subprocess.Popen("lsof | grep '/private/tmp/test_dms.obidms/'", stdin=subprocess.PIPE, shell=True )
#lsof.communicate( b"LSOF\n" )
#lsof = subprocess.Popen("lsof | wc -l", stdin=subprocess.PIPE, shell=True )
#lsof.communicate( b"LSOF total\n" )
#print(infos)