1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed 3cc08cd

mark getlogin as not threadsafe

  • Participants
  • Parent commits fea5257
  • Branches default

Comments (0)

Files changed (1)

File rpython/rtyper/module/ll_os.py

View file
  • Ignore whitespace
 
     @registering_if(os, "getlogin", condition=not _WIN32)
     def register_os_getlogin(self):
-        os_getlogin = self.llexternal('getlogin', [], rffi.CCHARP)
+        os_getlogin = self.llexternal('getlogin', [], rffi.CCHARP, threadsafe=False)
 
         def getlogin_llimpl():
             result = os_getlogin()