]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38061: os.closerange() uses closefrom() on FreeBSD (GH-19696)
authorVictor Stinner <vstinner@python.org>
Fri, 24 Apr 2020 10:00:51 +0000 (12:00 +0200)
committerGitHub <noreply@github.com>
Fri, 24 Apr 2020 10:00:51 +0000 (12:00 +0200)
commit162c567d164b5742c0d1f3f8bd8c8bab9c117cd0
treebd02253874089c2db84a4f4c0fb68bc478bfc029
parent4cc4d6048efcec43fe866fac96e0c2e57a87b308
bpo-38061: os.closerange() uses closefrom() on FreeBSD (GH-19696)

On FreeBSD, os.closerange(fd_low, fd_high) now calls
closefrom(fd_low) if fd_high is greater than or equal to
sysconf(_SC_OPEN_MAX).

Initial patch by Ed Maste (emaste), Conrad Meyer (cem), Kyle Evans
(kevans) and Kubilay Kocak (koobs):
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242274
Misc/NEWS.d/next/Library/2020-04-24-01-27-08.bpo-38061.cdlkMz.rst [new file with mode: 0644]
Modules/posixmodule.c