[pypy-commit] pypy default: (fijal) mark some other os funcs as not threadsafe also
bdkearns
noreply at buildbot.pypy.org
Mon Apr 15 21:31:14 CEST 2013
Author: Brian Kearns <bdkearns at gmail.com>
Branch:
Changeset: r63386:93ae7ecaef3e
Date: 2013-04-15 15:30 -0400
http://bitbucket.org/pypy/pypy/changeset/93ae7ecaef3e/
Log: (fijal) mark some other os funcs as not threadsafe also
diff --git a/rpython/rtyper/module/ll_os.py b/rpython/rtyper/module/ll_os.py
--- a/rpython/rtyper/module/ll_os.py
+++ b/rpython/rtyper/module/ll_os.py
@@ -1393,7 +1393,7 @@
@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))
@@ -1784,7 +1784,7 @@
@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)
More information about the pypy-commit
mailing list