components/python/python27/patches/11-closerange.patch
changeset 4698 4e27e549b58d
parent 1954 32663e59626d
child 7516 09c933391a1b
equal deleted inserted replaced
4697:2be298b79293 4698:4e27e549b58d
     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.7/Modules/posixmodule.c.~1~	2014-05-31 11:58:40.000000000 -0700
     4 --- Python-2.7.10/Modules/posixmodule.c.~1~	2015-05-10 10:17:06 -0700
     5 +++ Python-2.7.7/Modules/posixmodule.c	2014-06-02 10:49:30.052826955 -0700
     5 +++ Python-2.7.10/Modules/posixmodule.c	2015-05-18 14:43:36 -0700
     6 @@ -6607,16 +6607,34 @@
     6 @@ -6661,16 +6661,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)