瀏覽代碼

AMBARI-4141. Pluggable services: random daemons occupy agent's port (dlysnichenko)

Lisnichenko Dmitro 11 年之前
父節點
當前提交
7ae7a7decc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-agent/src/main/python/ambari_agent/PythonExecutor.py

+ 1 - 1
ambari-agent/src/main/python/ambari_agent/PythonExecutor.py

@@ -111,7 +111,7 @@ class PythonExecutor:
     """
     return subprocess.Popen(command,
       stdout=tmpout,
-      stderr=tmperr)
+      stderr=tmperr, close_fds=True)
 
   def isSuccessfull(self, returncode):
     return not self.python_process_has_been_killed and returncode == 0