diff options
author | Ludovic Courtès <ludo@gnu.org> | 2017-11-19 23:02:29 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-11-19 23:09:01 +0100 |
commit | 85f4f7b79040d982c6a655c898b4cd00d868fa9c (patch) | |
tree | 4cc7fa226e57fed5f4269f0eb8e3d61af7d2c7a0 /gnu.scm | |
parent | 52d174d6d116d75c71ddf0aa448b05f58637e9df (diff) | |
download | patches-85f4f7b79040d982c6a655c898b4cd00d868fa9c.tar patches-85f4f7b79040d982c6a655c898b4cd00d868fa9c.tar.gz |
zlib: Fix race condition when closing gzip ports.
Fixes <https://bugs.gnu.org/29335>.
* guix/zlib.scm (close-procedure): Remove.
(make-gzip-input-port): Do (dup (fileno port)) to get a file descriptor
for 'gzdopen'. Close PORT before returning. Use 'gzclose' as the
'close' procedure of the returned port.
(make-gzip-output-port): Likewise.
Diffstat (limited to 'gnu.scm')
0 files changed, 0 insertions, 0 deletions