Преглед на файлове

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