mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Issue #11006: Don't issue low level warning in subprocess when pipe2() fails.
This commit is contained in:
parent
3ba95f8bd9
commit
031bf95d32
2 changed files with 2 additions and 6 deletions
|
|
@ -97,6 +97,8 @@ Core and Builtins
|
||||||
Library
|
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
|
- Issue #11829: Fix code execution holes in inspect.getattr_static for
|
||||||
metaclasses with metaclasses. Patch by Andreas Stührk.
|
metaclasses with metaclasses. Patch by Andreas Stührk.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -437,12 +437,6 @@ subprocess_cloexec_pipe(PyObject *self, PyObject *noargs)
|
||||||
Py_END_ALLOW_THREADS
|
Py_END_ALLOW_THREADS
|
||||||
if (res != 0 && errno == ENOSYS)
|
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
|
#endif
|
||||||
/* We hold the GIL which offers some protection from other code calling
|
/* We hold the GIL which offers some protection from other code calling
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue