cpython: b1b35583967a (original) (raw)
Mercurial > cpython
changeset 74126:b1b35583967a
Merge with 3.2 for #11006. [#11006]
Ross Lagerwall rosslagerwall@gmail.com | |
---|---|
date | Thu, 22 Dec 2011 09:10:47 +0200 |
parents | 4bbc3ffa1207(current diff)dc913f73a7fb(diff) |
children | 9682a975bc1e |
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 @@ -419,6 +419,8 @@ Core and Builtins Library ------- +- Issue #11006: Don't issue low level warning in subprocess when pipe2() fails. +
--- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -442,12 +442,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