From: Stelian Pop Date: Tue, 20 Mar 2001 20:25:27 +0000 (+0000) Subject: Another compress patch (compress while waiting for previous slave to write) X-Git-Tag: release_0_4b22~25 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=41d8bdc06642add2145776e8fd3349765f8306c7;p=dump.git Another compress patch (compress while waiting for previous slave to write) --- 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)