Module Name: src
Committed By: simonb
Date: Thu Jun 24 07:16:49 UTC 2021
Modified Files:
src/usr.bin/gzip: gzip.c
Log Message:
Call check_siginfo() in compression loop to provide SIGINFO compression
progress.
Suggested by mrg@.
To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/usr.bin/gzip/gzip.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/gzip/gzip.c
diff -u src/usr.bin/gzip/gzip.c:1.116 src/usr.bin/gzip/gzip.c:1.117
--- src/usr.bin/gzip/gzip.c:1.116 Sat Oct 27 11:39:12 2018
+++ src/usr.bin/gzip/gzip.c Thu Jun 24 07:16:49 2021
@@ -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 @@ gz_compress(int in, int out, off_t *gsiz
crc = crc32(0L, Z_NULL, 0);
for (;;) {
+ check_siginfo();
if (z.avail_out == 0) {
if (write_retry(out, outbufp, BUFLEN) != BUFLEN) {
maybe_warn("write");