CC-4970: Process return codes aren't "reaped" after exiting - Zombie processes are created.

-fixed
This commit is contained in:
Martin Konecny 2013-02-20 14:40:16 -05:00
parent 70931e9a5e
commit 8f53871ddc

View file

@ -174,7 +174,8 @@ def normalize_mutagen(path):
try:
command = ['silan', '-f', 'JSON', md['path']]
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
out = proc.stdout.read()
out = proc.communicate()[0].strip('\r\n')
info = json.loads(out)
md['cuein'] = info['sound'][0][0]
md['cueout'] = info['sound'][-1][1]