From 671c6276078b76df5ffeedb8e4e8591bfc1d7433 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 20 Feb 2013 15:22:58 -0500 Subject: [PATCH] CC-4965: Fix airtime-silan import tool -prevent zombie processes --- utils/airtime-silan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/airtime-silan.py b/utils/airtime-silan.py index 465edae6f..04ec86745 100644 --- a/utils/airtime-silan.py +++ b/utils/airtime-silan.py @@ -52,7 +52,7 @@ try: try: command = ['silan', '-f', 'JSON', full_path] proc = subprocess.Popen(command, stdout=subprocess.PIPE) - out = proc.stdout.read() + out = proc.communicate()[0].strip('\r\n') info = json.loads(out) data = {} data['cuein'] = str('{0:f}'.format(info['sound'][0][0]))