1. Pypy
  2. Untitled project
  3. pypy

Commits

Brian Kearns  committed 93ae7ec

(fijal) mark some other os funcs as not threadsafe also

  • Participants
  • Parent commits 3cc08cd
  • Branches default

Comments (0)

Files changed (1)

File rpython/rtyper/module/ll_os.py

View file
  • Ignore whitespace
 
     @registering(os.strerror)
     def register_os_strerror(self):
-        os_strerror = self.llexternal('strerror', [rffi.INT], rffi.CCHARP)
+        os_strerror = self.llexternal('strerror', [rffi.INT], rffi.CCHARP, threadsafe=False)
 
         def strerror_llimpl(errnum):
             res = os_strerror(rffi.cast(rffi.INT, errnum))
 
     @registering_if(os, 'ttyname')
     def register_os_ttyname(self):
-        os_ttyname = self.llexternal('ttyname', [lltype.Signed], rffi.CCHARP)
+        os_ttyname = self.llexternal('ttyname', [lltype.Signed], rffi.CCHARP, threadsafe=False)
 
         def ttyname_llimpl(fd):
             l_name = os_ttyname(fd)