Skip to content

Commit

Permalink
Fix breakage with python-daemon>=2.1
Browse files Browse the repository at this point in the history
fixes #17
  • Loading branch information
ThiefMaster committed Nov 28, 2015
1 parent 59b157f commit ea2645b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions maildump_runner/geventdaemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ea2645b

Please sign in to comment.