From ea2645b1bb9c4fca5c0e8ad8185839fc26f62fe4 Mon Sep 17 00:00:00 2001 From: Adrian Moennich Date: Sat, 28 Nov 2015 15:30:23 +0100 Subject: [PATCH] Fix breakage with python-daemon>=2.1 fixes #17 --- maildump_runner/geventdaemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maildump_runner/geventdaemon.py b/maildump_runner/geventdaemon.py index 8447b77..e980a64 100644 --- a/maildump_runner/geventdaemon.py +++ b/maildump_runner/geventdaemon.py @@ -32,6 +32,10 @@ def __init__(self, monkey_greenlet_report=True, monkey=True, gevent_hub=None, si self.monkey_greenlet_report = monkey_greenlet_report self.gevent_hub = gevent_hub super(GeventDaemonContext, self).__init__(signal_map={}, **daemon_options) + # python-daemon>=2.1 has initgroups=True by default but it requires root privs + # older versions don't have the kwarg so we set it manually instead of using + # the constructor argument + self.initgroups = False def open(self): super(GeventDaemonContext, self).open()