cpython/Python
Victor Stinner 6fb5bae252 Fix race condition in create_stdio()
Issue #24891: Fix a race condition at Python startup if the file descriptor
of stdin (0), stdout (1) or stderr (2) is closed while Python is creating
sys.stdin, sys.stdout and sys.stderr objects. These attributes are now set
to None if the creation of the object failed, instead of raising an OSError
exception. Initial patch written by Marco Paolini.
2015-09-04 17:27:49 +02:00
..
Python-ast.c bump Python-ast.c 2014-02-19 23:05:26 -05:00
_warnings.c merge 3.3 (#24096) 2015-05-03 11:28:46 -04:00
asdl.c Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py". 2013-10-12 22:52:43 +02:00
ast.c revert lineno and col_offset changes from #16795 (closes #21295) 2015-02-02 10:51:20 -05:00
bltinmodule.c Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() 2015-02-03 01:21:08 +02:00
ceval.c Added the const qualifier for char* argument of Py_EnterRecursiveCall(). 2015-06-21 16:26:28 +03:00
ceval_gil.h Issue #15038: Optimize python Locks on Windows 2012-06-18 20:30:44 +00:00
codecs.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:45:22 +03:00
compile.c Fixed indentation of Python examples in C comments. 2015-06-11 00:06:39 +03:00
condvar.h Merging from 3.3: The PyCOND_TIMEDWAIT must use microseconds for the timeout argument 2014-05-08 10:59:52 +00:00
dtoa.c Issue #19638: Raise ValueError instead of crashing when converting billion character strings to float. 2013-11-26 16:19:13 +00:00
dup2.c Merged revisions 85236 via svnmerge from 2010-10-05 22:18:29 +00:00
dynamic_annotations.c Make (most of) Python's tests pass under Thread Sanitizer. 2010-05-03 19:29:34 +00:00
dynload_aix.c Issue #18722: Remove uses of the "register" keyword in C code. 2013-08-13 20:18:52 +02:00
dynload_dl.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_hpux.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_next.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_shlib.c Issue #16136: Remove VMS support and VMS-related code 2013-12-21 16:19:10 +01:00
dynload_stub.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. 2012-05-04 15:20:40 -04:00
dynload_win.c Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows(). 2013-06-10 15:38:54 +01:00
errors.c Issue #22977: Fixed formatting Windows error messages on Wine. 2015-04-02 09:47:27 +03:00
fileutils.c Fixes incorrect use of GetLastError where errno should be used. 2015-03-14 11:38:27 -07:00
formatter_unicode.c Reverted 16efa8d27e4c after discussion with Eric. 2014-04-15 13:52:21 +01:00
frozen.c make some freezing related stuff const 2013-03-13 14:06:39 -05:00
frozenmain.c avoid reading unallocated memory when argc == 0 (closes #22633) 2015-02-14 15:16:32 -05:00
future.c Close #11619: The parser and the import machinery do not encode Unicode 2013-08-26 22:28:21 +02:00
getargs.c Fixed error message for the "u#" format code. 2015-04-19 21:11:30 +03:00
getcompiler.c
getcopyright.c merge 3.2 2014-12-31 18:10:13 -06:00
getopt.c #16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka. 2012-11-23 18:48:32 +02:00
getplatform.c
getversion.c Merged revisions 83352,83355-83358,83362,83366,83368-83369 via svnmerge from 2010-08-01 19:17:57 +00:00
graminit.c Backed out changeset 521232b05b97 2013-03-20 00:39:41 -05:00
import.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:45:22 +03:00
importdl.c Issue #18408: Fix _PyImport_LoadDynamicModule(), handle PyUnicode_FromFormat() failure 2013-07-17 21:53:23 +02:00
importdl.h #16135: Removal of OS/2 support (I) 2012-10-05 01:04:27 +02:00
importlib.h revert lineno and col_offset changes from #16795 (closes #21295) 2015-02-02 10:51:20 -05:00
makeopcodetargets.py excise the remains of STOP_CODE, which hasn't done anything useful for years 2011-07-17 22:49:50 -05:00
marshal.c Fixed memory leak in marshal. 2015-01-28 17:10:48 +02:00
modsupport.c Issue #20024: Py_BuildValue() now saves/restores the current exception before 2014-01-21 20:52:17 +01:00
mysnprintf.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
mystrtoul.c Issue #1772673: The type of `char*` arguments now changed to `const char*`. 2013-10-19 21:03:34 +03:00
opcode_targets.h rather than passing locals to the class body, just execute the class body in the proper environment 2013-05-16 14:37:25 -05:00
peephole.c Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer 2015-02-16 13:28:22 +02:00
pyarena.c Issue #18203: Replace malloc() with PyMem_Malloc() to allocate arena objects 2013-07-07 17:18:53 +02:00
pyctype.c Include files missed in r72044. 2009-04-27 20:54:42 +00:00
pyfpe.c
pyhash.c Issue #20162: Fix an alignment issue in the siphash24() hash function which 2014-02-01 03:38:56 +01:00
pymath.c Issue 24366: Indent code (thanks to li4ick for reporting). 2015-06-02 18:53:46 -04:00
pystate.c revert tstate_delete_common, since it's pretty much wrong 2014-06-17 00:34:46 -07:00
pystrcmp.c Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
pystrtod.c Removed duplicated words in in comments and docs. 2014-12-01 18:28:43 +02:00
pythonrun.c Fix race condition in create_stdio() 2015-09-04 17:27:49 +02:00
pytime.c Issue #20320: select.select() and select.kqueue.control() now round the timeout 2014-02-17 00:02:43 +01:00
random.c Issue #22585: os.urandom() now releases the GIL when the getentropy() is used 2015-03-30 11:18:30 +02:00
sigcheck.c
strdup.c Issue #18722: Remove uses of the "register" keyword in C code. 2013-08-13 20:18:52 +02:00
structmember.c Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815 2012-09-11 17:30:53 +02:00
symtable.c remove dead *-import checking code (closes #24049) 2015-04-24 12:02:29 -04:00
sysmodule.c Issue #23181: More "codepoint" -> "code point". 2015-01-18 11:28:37 +02:00
thread.c Removed duplicated words in in comments and docs. 2014-12-01 18:28:43 +02:00
thread_foobar.h Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
thread_nt.h Merging from 3.3: The PyCOND_TIMEDWAIT must use microseconds for the timeout argument 2014-05-08 10:59:52 +00:00
thread_pthread.h Issue #19787: PyThread_set_key_value() now always set the value 2013-12-13 11:08:56 +01:00
traceback.c Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add. 2015-06-21 15:59:46 +03:00