summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Brewer <fumanchu@aminus.org>2008-08-15 19:59:21 +0000
committerRobert Brewer <fumanchu@aminus.org>2008-08-15 19:59:21 +0000
commita07c2c8eff602de38229b3370673cf6590f1b660 (patch)
tree768f0743709cc2cdb4f75224b4b27dc5ddb15062
parent19036e5cedc34d8e7c4451076b7cdd2728724afb (diff)
downloadcherrypy-a07c2c8eff602de38229b3370673cf6590f1b660.tar.gz
Bumped up the priority of DropPrivileges.start to support the most common use: bind to a low port as root.
-rw-r--r--cherrypy/process/plugins.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py
index e2d5fe5d..0e8b4bf9 100644
--- a/cherrypy/process/plugins.py
+++ b/cherrypy/process/plugins.py
@@ -233,7 +233,10 @@ class DropPrivileges(SimplePlugin):
(old_umask, self.umask))
self.finalized = True
- start.priority = 75
+ # This is slightly higher than the priority for server.start
+ # in order to facilitate the most common use: starting on a low
+ # port (which requires root) and then dropping to another user.
+ start.priority = 77
class Daemonizer(SimplePlugin):