diff --git a/im_service.py b/im_service.py index 1a88efd9d..337dd051e 100755 --- a/im_service.py +++ b/im_service.py @@ -383,7 +383,7 @@ def get_childs(parent_id=None): if parent_id is None: parent_id = os.getpid() ps_command = subprocess.Popen(["ps", "-o", "pid", "--ppid", str(parent_id), "--noheaders"], - stdout=subprocess.PIPE) + stdout=subprocess.PIPE) ps_command.wait() ps_output = str(ps_command.stdout.read()) childs = ps_output.strip().split("\n")[:-1]