Skip to content

Commit

Permalink
Root warning should use getuid not geteuid
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Nov 25, 2011
1 parent 703e772 commit e0767e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/apps/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ def run(self):
self.worker_init()
self.redirect_stdouts_to_logger()

if getattr(os, "geteuid", None) and os.geteuid() == 0:
if getattr(os, "getuid", None) and os.getuid() == 0:
warnings.warn(
"Running celeryd with superuser privileges is not encouraged!")
"Running celeryd with superuser privileges is discouraged!")

if self.discard:
self.purge_messages()
Expand Down

0 comments on commit e0767e4

Please sign in to comment.