Merge pull request #279 from michalbednarski/python-setinheritable
authorFredrik Fornwall <fredrik@fornwall.net>
Wed, 18 May 2016 23:39:37 +0000 (01:39 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Wed, 18 May 2016 23:39:37 +0000 (01:39 +0200)
python: Make os.set_inheritable work on sockets

packages/python/fileutils.c.patch [new file with mode: 0644]

diff --git a/packages/python/fileutils.c.patch b/packages/python/fileutils.c.patch
new file mode 100644 (file)
index 0000000..0464f2a
--- /dev/null
@@ -0,0 +1,11 @@
+--- Python-3.5.1/Python/fileutils.c    2015-12-07 02:39:11.000000000 +0100
++++ src/Python/fileutils.c     2016-05-17 21:46:09.006285776 +0200
+@@ -856,7 +856,7 @@
+             return 0;
+         }
+-        if (errno != ENOTTY) {
++        if (errno != ENOTTY && errno != EACCES) {
+             if (raise)
+                 PyErr_SetFromErrno(PyExc_OSError);
+             return -1;