python: Make os.set_inheritable work on sockets
[termux-packages] / packages / python / fileutils.c.patch
CommitLineData
5b5125f3
MB
1--- Python-3.5.1/Python/fileutils.c 2015-12-07 02:39:11.000000000 +0100
2+++ src/Python/fileutils.c 2016-05-17 21:46:09.006285776 +0200
3@@ -856,7 +856,7 @@
4 return 0;
5 }
6
7- if (errno != ENOTTY) {
8+ if (errno != ENOTTY && errno != EACCES) {
9 if (raise)
10 PyErr_SetFromErrno(PyExc_OSError);
11 return -1;