components/python/python27/patches/11-closerange.patch
changeset 7516 09c933391a1b
parent 4698 4e27e549b58d
equal deleted inserted replaced
7513:0a979060f73b 7516:09c933391a1b
     1 This patch uses fdwalk(3c) to close file descriptors; as that function is not
     1 This patch uses fdwalk(3c) to close file descriptors; as that function is not
     2 widely implemented, this is unsuitable for upstream.
     2 widely implemented, this is unsuitable for upstream.
     3 
     3 
     4 --- Python-2.7.10/Modules/posixmodule.c.~1~	2015-05-10 10:17:06 -0700
     4 --- Python-2.7.10/Modules/posixmodule.c.~1~	2015-05-10 10:17:06 -0700
     5 +++ Python-2.7.10/Modules/posixmodule.c	2015-05-18 14:43:36 -0700
     5 +++ Python-2.7.10/Modules/posixmodule.c	2015-05-18 14:43:36 -0700
     6 @@ -6661,16 +6661,34 @@
     6 @@ -6642,16 +6642,34 @@
     7  "closerange(fd_low, fd_high)\n\n\
     7  "closerange(fd_low, fd_high)\n\n\
     8  Closes all file descriptors in [fd_low, fd_high), ignoring errors.");
     8  Closes all file descriptors in [fd_low, fd_high), ignoring errors.");
     9  
     9  
    10 +static int
    10 +static int
    11 +close_func(void *lohi, int fd)
    11 +close_func(void *lohi, int fd)