13 lines
441 B
Text
13 lines
441 B
Text
|
Index: Modules/_posixsubprocess.c
|
||
|
--- Modules/_posixsubprocess.c.orig
|
||
|
+++ Modules/_posixsubprocess.c
|
||
|
@@ -264,7 +264,7 @@ _close_fds_by_brute_force(long start_fd, PyObject *py_
|
||
|
start_fd = keep_fd + 1;
|
||
|
}
|
||
|
if (start_fd <= end_fd) {
|
||
|
-#if defined(__FreeBSD__)
|
||
|
+#if defined(__FreeBSD__) || defined(__OpenBSD__)
|
||
|
/* Any errors encountered while closing file descriptors are ignored */
|
||
|
closefrom(start_fd);
|
||
|
#else
|