From 91531deb6d2bd9a354b17d5aa61fe188e9801159 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 9 Dec 2007 04:31:39 +0000 Subject: [PATCH] no more zombie processes when launching external apps --- src/common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common.py b/src/common.py index b41591357..4c1b53463 100644 --- a/src/common.py +++ b/src/common.py @@ -186,12 +186,11 @@ def fetch_url(url): return None def exec_command(executable, *parameters): - from subprocess import Popen - + import os command = [executable] command.extend(parameters) try: - Popen(command) + os.WEXITSTATUS(os.system(command[0] +" "+ command[1])) except OSError: import gtk