diff --git a/files/log-gearman-worker.py b/files/log-gearman-worker.py
index ea8bcd9..6425099 100644
--- a/files/log-gearman-worker.py
+++ b/files/log-gearman-worker.py
@@ -66,7 +66,8 @@ class CRM114Filter(object):
         self.p = subprocess.Popen(args,
                                   stdout=subprocess.PIPE,
                                   stderr=subprocess.PIPE,
-                                  stdin=subprocess.PIPE)
+                                  stdin=subprocess.PIPE,
+                                  close_fds=True)
 
     def process(self, data):
         if not self.p: