Diff for /src/test/sysperf/pipe2.c between versions 1.4 and 1.5

version 1.4, 2004/04/28 00:08:55 version 1.5, 2004/04/29 16:05:21
Line 64  main(int ac, char **av) Line 64  main(int ac, char **av)
         /*          /*
          * child process           * child process
          */           */
           int n;
           int i;
   
         close(fds[0]);          close(fds[0]);
         buf += (bytes + PAGE_MASK) & ~PAGE_MASK;          buf += (bytes + PAGE_MASK) & ~PAGE_MASK;
         while (read(fds[1], buf, bytes) > 0)          i = 0;
                 ;          for (;;) {
               n = read(fds[1], buf + i, bytes - i);
               if (n <= 0)
                   break;
               if (n + i == bytes)
                   i = 0;
               else
                   i += n;
           }
         _exit(0);          _exit(0);
     } else {      } else {
         /*           /* 
Line 93  main(int ac, char **av) Line 104  main(int ac, char **av)
             if ((j & 31) == 0 && stop_timing(0, NULL))              if ((j & 31) == 0 && stop_timing(0, NULL))
                 break;                  break;
         }          }
         loops = j * 5 + 1;          loops = j * 2 + 1;
         usleep(1000000 / 10);          usleep(1000000 / 10);
         start_timing();          start_timing();
   

Removed from v.1.4  
changed lines
  Added in v.1.5