]> git.wh0rd.org - dump.git/commitdiff
Another compress patch (compress while waiting for previous slave to write)
authorStelian Pop <stelian@popies.net>
Tue, 20 Mar 2001 20:25:27 +0000 (20:25 +0000)
committerStelian Pop <stelian@popies.net>
Tue, 20 Mar 2001 20:25:27 +0000 (20:25 +0000)
dump/tape.c

index b4bf6d4eb808b97a00cb72ae91c53b52cb539bf1..65387e7ad461a5c21dc4e6cb4ef6563dd02975b5 100644 (file)
@@ -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 <config.h>
@@ -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)