Module: check_mk
Branch: master
Commit: 77f9d794c432e42fbed7730fb11acdec1ae14d8e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77f9d794c432e4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 13 15:33:59 2017 +0100
Fixed recently introduced bug where rrdcached got the WATO lock
Change-Id: Iea46ab461cb6f3533809e42f5f2ed75dff268bce
---
web/plugins/wato/omd_configuration.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/plugins/wato/omd_configuration.py
b/web/plugins/wato/omd_configuration.py
index 81561fd..db81e5e 100644
--- a/web/plugins/wato/omd_configuration.py
+++ b/web/plugins/wato/omd_configuration.py
@@ -340,7 +340,7 @@ class ConfigDomainApache(watolib.ConfigDomain):
self._write_config_file()
p = subprocess.Popen(["omd", "reload",
"apache"], shell=False, stdin=open(os.devnull),
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True)
stdout = p.communicate()[0]
if p.returncode != 0:
@@ -444,7 +444,7 @@ class ConfigDomainRRDCached(watolib.ConfigDomain):
self._write_config_file()
p = subprocess.Popen(["omd", "restart",
"rrdcached"], shell=False, stdin=open(os.devnull),
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ stdout=subprocess.PIPE, stderr=subprocess.STDOUT, close_fds=True)
stdout = p.communicate()[0]
if p.returncode != 0: