Browse Source

AMBARI-8333. Ambari-agent restart fails on Ubuntu. (dlysnichenko)

Lisnichenko Dmitro 10 years ago
parent
commit
0258926049
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ambari-agent/src/main/python/ambari_agent/PackagesAnalyzer.py

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

@@ -40,7 +40,7 @@ class PackagesAnalyzer:
 
   def launch_subprocess(self, command):
     isShell = not isinstance(command, (list, tuple))
-    return subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=isShell)
+    return subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=isShell, close_fds=True)
 
   def watchdog_func(self, command):
     self.event.wait(self.TIMEOUT_SECONDS)