소스 검색

Windows: geteuid not available. Closes #1676

Ask Solem 11 년 전
부모
커밋
4ce322d138
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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():