components/python/python34/patches/11-closerange.patch
changeset 3869 eb4c6284602f
parent 1907 446472de62e9
child 5229 b7b91ddbbdce
equal deleted inserted replaced
3867:e12ff6f7add3 3869:eb4c6284602f
     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-3.4.0/Modules/posixmodule.c.~1~	2014-03-16 19:31:31.000000000 -0700
     4 --- Python-3.4.3/Modules/posixmodule.c.~1~	2015-02-25 03:27:46.000000000 -0800
     5 +++ Python-3.4.0/Modules/posixmodule.c	2014-03-17 13:31:33.433740698 -0700
     5 +++ Python-3.4.3/Modules/posixmodule.c	2015-02-25 08:22:50.773678769 -0800
     6 @@ -7789,16 +7789,34 @@
     6 @@ -7809,16 +7809,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)