Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/gzip Call check_siginfo() in compression loop to pro...



details:   https://anonhg.NetBSD.org/src/rev/1100bb81cca8
branches:  trunk
changeset: 1021903:1100bb81cca8
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Jun 24 07:16:49 2021 +0000

description:
Call check_siginfo() in compression loop to provide SIGINFO compression
progress.
Suggested by mrg@.

diffstat:

 usr.bin/gzip/gzip.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a2ea300ad1b5 -r 1100bb81cca8 usr.bin/gzip/gzip.c
--- a/usr.bin/gzip/gzip.c       Thu Jun 24 05:53:05 2021 +0000
+++ b/usr.bin/gzip/gzip.c       Thu Jun 24 07:16:49 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gzip.c,v 1.116 2018/10/27 11:39:12 skrll Exp $ */
+/*     $NetBSD: gzip.c,v 1.117 2021/06/24 07:16:49 simonb Exp $        */
 
 /*
  * Copyright (c) 1997, 1998, 2003, 2004, 2006, 2008, 2009, 2010, 2011, 2015, 2017
@@ -31,7 +31,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1997, 1998, 2003, 2004, 2006, 2008,\
  2009, 2010, 2011, 2015, 2017 Matthew R. Green.  All rights reserved.");
-__RCSID("$NetBSD: gzip.c,v 1.116 2018/10/27 11:39:12 skrll Exp $");
+__RCSID("$NetBSD: gzip.c,v 1.117 2021/06/24 07:16:49 simonb Exp $");
 #endif /* not lint */
 
 /*
@@ -622,6 +622,7 @@
 
        crc = crc32(0L, Z_NULL, 0);
        for (;;) {
+               check_siginfo();
                if (z.avail_out == 0) {
                        if (write_retry(out, outbufp, BUFLEN) != BUFLEN) {
                                maybe_warn("write");



Home | Main Index | Thread Index | Old Index