Explorar o código

Windows: geteuid not available. Closes #1676

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
4ce322d138
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      celery/platforms.py

+ 2 - 0
celery/platforms.py

@@ -493,6 +493,8 @@ def maybe_drop_privileges(uid=None, gid=None):
     If only GID is specified, only the group is changed.
 
     """
+    if sys.platform == 'win32':
+        return
     if os.geteuid():
         # no point trying to setuid unless we're root.
         if not os.getuid():