cpython: dc913f73a7fb (original) (raw)
Mercurial > cpython
changeset 74125:dc913f73a7fb 3.2
Issue #11006: Don't issue low level warning in subprocess when pipe2() fails. [#11006]
Ross Lagerwall rosslagerwall@gmail.com | |
---|---|
date | Thu, 22 Dec 2011 09:07:30 +0200 |
parents | 8f33758df19a |
children | b1b35583967a 69eee9084ba3 |
files | Misc/NEWS Modules/_posixsubprocess.c |
diffstat | 2 files changed, 2 insertions(+), 6 deletions(-)[+] [-] Misc/NEWS 2 Modules/_posixsubprocess.c 6 |
line wrap: on
line diff
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -97,6 +97,8 @@ Core and Builtins Library ------- +- Issue #11006: Don't issue low level warning in subprocess when pipe2() fails. +
- Issue #11829: Fix code execution holes in inspect.getattr_static for metaclasses with metaclasses. Patch by Andreas Stührk.
--- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -437,12 +437,6 @@ subprocess_cloexec_pipe(PyObject *self, Py_END_ALLOW_THREADS if (res != 0 && errno == ENOSYS) {
if (PyErr_WarnEx([](#l2.7)
PyExc_RuntimeWarning,[](#l2.8)
"pipe2 set errno ENOSYS; falling "[](#l2.9)
"back to non-atomic pipe+fcntl.", 1) != 0) {[](#l2.10)
return NULL;[](#l2.11)
}[](#l2.12) {[](#l2.13)
#endif /* We hold the GIL which offers some protection from other code calling