zlib/zlib-ocloexec.patch

11 lines
268 B
Diff
Raw Normal View History

--- gzlib.c.orig
+++ gzlib.c
@@ -168,6 +168,7 @@ local gzFile gz_open(path, fd, mode)
#ifdef O_BINARY
O_BINARY |
#endif
+ O_CLOEXEC |
(state->mode == GZ_READ ?
O_RDONLY :
(O_WRONLY | O_CREAT | (