GNU bug report logs - #15380
Bug in gzip.c buffering, and two feature requests

Previous Next

Package: gzip;

Reported by: Martin Langhoff <martin.langhoff <at> gmail.com>

Date: Sun, 15 Sep 2013 01:00:04 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Martin Langhoff <martin.langhoff <at> gmail.com>
Cc: jim <at> meyering.net, 15380 <at> debbugs.gnu.org
Subject: bug#15380: Bug in gzip.c buffering, and two feature requests
Date: Sat, 14 Sep 2013 23:13:22 -0500
Your gzip feature requests sound reasonable, except for this one:

On 09/14/2013 07:57 PM, Martin Langhoff wrote:

> Bug: gzip.c discards its buffers when it gets SIGTERM, with no
> effort made to flush them to disk.

That's the normal behavior of utilites when they get SIGTERM; they
exit right away with minimal fuss, and they typically do not attempt
to flush output buffers.

> Logging via gzip adds buffering, when apache is stopped (or
> restarted, usually daily to rotate logs), apache sends SIGTERM
> before it closes the fh;

That seems wrong.  Apache should close the file handle, and let gzip
finish up cleanly.  Maybe Apache should kill gzip if gzip doesn't exit
reasonably soon after the file handle is closed, but it'd be misguided
for Apache to kill off gzip first, before closing the file handle.  If
this is really Apache's behavior, perhaps you should file an Apache
bug report.





This bug report was last modified 11 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.