]> granicus.if.org Git - python/commitdiff
Issue #11006: Don't issue low level warning in subprocess when pipe2() fails.
authorRoss Lagerwall <rosslagerwall@gmail.com>
Thu, 22 Dec 2011 07:07:30 +0000 (09:07 +0200)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Thu, 22 Dec 2011 07:07:30 +0000 (09:07 +0200)
Misc/NEWS
Modules/_posixsubprocess.c

index 9168a55be07b5af9a0e27a93ed9bef3dc3c55ccc..c36b0196d21a186dbf7c7446b6daeb01ca9526f8 100644 (file)
--- 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.
 
index 11b24a031f5006d092cebeccd83b7202a207ba22..4e38bbe63f0bda9d151a799d9baa102f2454c3d0 100644 (file)
@@ -437,12 +437,6 @@ subprocess_cloexec_pipe(PyObject *self, PyObject *noargs)
     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