[BACK]Return to io.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rsync

Diff for /src/usr.bin/rsync/io.c between version 1.17 and 1.18

version 1.17, 2019/05/08 21:30:11 version 1.18, 2019/06/28 13:35:03
Line 40 
Line 40 
         pfd.fd = fd;          pfd.fd = fd;
         pfd.events = POLLIN;          pfd.events = POLLIN;
   
         if (poll(&pfd, 1, 0) < 0) {          if (poll(&pfd, 1, 0) == -1) {
                 ERR("poll");                  ERR("poll");
                 return -1;                  return -1;
         }          }
Line 89 
Line 89 
   
         /* Now the non-blocking write. */          /* Now the non-blocking write. */
   
         if ((wsz = write(fd, buf, bsz)) < 0) {          if ((wsz = write(fd, buf, bsz)) == -1) {
                 ERR("write");                  ERR("write");
                 return 0;                  return 0;
         }          }
Line 217 
Line 217 
   
         /* Now the non-blocking read, checking for EOF. */          /* Now the non-blocking read, checking for EOF. */
   
         if ((rsz = read(fd, buf, bsz)) < 0) {          if ((rsz = read(fd, buf, bsz)) == -1) {
                 ERR("read");                  ERR("read");
                 return 0;                  return 0;
         } else if (rsz == 0) {          } else if (rsz == 0) {

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18