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/d9b97ae89861
branches: trunk
changeset: 379872:d9b97ae89861
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 be7e38bdd121 -r d9b97ae89861 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 @@ 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");


Home | Main Index | Thread Index | Old Index

AltStyle によって変換されたページ (->オリジナル) /