(original) (raw)
changeset: 74125:dc913f73a7fb branch: 3.2 parent: 74122:8f33758df19a user: Ross Lagerwall rosslagerwall@gmail.com date: Thu Dec 22 09:07:30 2011 +0200 files: Misc/NEWS Modules/_posixsubprocess.c description: Issue #11006: Don't issue low level warning in subprocess when pipe2() fails. diff -r 8f33758df19a -r dc913f73a7fb Misc/NEWS --- a/Misc/NEWS Thu Dec 22 01:13:37 2011 +0000 +++ b/Misc/NEWS Thu Dec 22 09:07:30 2011 +0200 @@ -97,6 +97,8 @@ 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. diff -r 8f33758df19a -r dc913f73a7fb Modules/_posixsubprocess.c --- a/Modules/_posixsubprocess.c Thu Dec 22 01:13:37 2011 +0000 +++ b/Modules/_posixsubprocess.c Thu Dec 22 09:07:30 2011 +0200 @@ -437,12 +437,6 @@ Py_END_ALLOW_THREADS if (res != 0 && errno == ENOSYS) { - if (PyErr_WarnEx( - PyExc_RuntimeWarning, - "pipe2 set errno ENOSYS; falling " - "back to non-atomic pipe+fcntl.", 1) != 0) { - return NULL; - } { #endif /* We hold the GIL which offers some protection from other code calling /rosslagerwall@gmail.com