From 41d8bdc06642add2145776e8fd3349765f8306c7 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Tue, 20 Mar 2001 20:25:27 +0000 Subject: [PATCH] Another compress patch (compress while waiting for previous slave to write) --- dump/tape.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dump/tape.c b/dump/tape.c index b4bf6d4..65387e7 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.37 2001/03/20 20:15:59 stelian Exp $"; + "$Id: tape.c,v 1.38 2001/03/20 20:25:27 stelian Exp $"; #endif /* not lint */ #include @@ -1095,13 +1095,6 @@ doslave(int cmd, int slave_number) quit("master/slave protocol botched.\n"); } } - if (sigsetjmp(jmpbuf, 1) == 0) { - ready = 1; - if (!caught) - (void) pause(); - } - ready = 0; - caught = 0; /* Try to write the data... */ wrote = 0; @@ -1150,6 +1143,14 @@ doslave(int cmd, int slave_number) do_compress = compressed; #endif /* HAVE_ZLIB */ + if (sigsetjmp(jmpbuf, 1) == 0) { + ready = 1; + if (!caught) + (void) pause(); + } + ready = 0; + caught = 0; + while (eot_count < 10 && size < bufsize) { #ifdef RDUMP if (host) -- 2.39.5