Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 031bf95

Browse files
committed
Issue #11006: Don't issue low level warning in subprocess when pipe2() fails.
1 parent 3ba95f8 commit 031bf95

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ Core and Builtins
9797
Library
9898
-------
9999

100+
- Issue #11006: Don't issue low level warning in subprocess when pipe2() fails.
101+
100102
- Issue #11829: Fix code execution holes in inspect.getattr_static for
101103
metaclasses with metaclasses. Patch by Andreas Stührk.
102104

Modules/_posixsubprocess.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,6 @@ subprocess_cloexec_pipe(PyObject *self, PyObject *noargs)
437437
Py_END_ALLOW_THREADS
438438
if (res != 0 && errno == ENOSYS)
439439
{
440-
if (PyErr_WarnEx(
441-
PyExc_RuntimeWarning,
442-
"pipe2 set errno ENOSYS; falling "
443-
"back to non-atomic pipe+fcntl.", 1) != 0) {
444-
return NULL;
445-
}
446440
{
447441
#endif
448442
/* We hold the GIL which offers some protection from other code calling

0 commit comments

Comments
 (0)