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

Diff for /src/usr.bin/aucat/Attic/sock.c between version 1.63 and 1.64

version 1.63, 2012/04/11 06:05:43 version 1.64, 2012/04/11 21:17:32
Line 1554 
Line 1554 
 int  int
 sock_read(struct sock *f)  sock_read(struct sock *f)
 {  {
           int rc;
   
 #ifdef DEBUG  #ifdef DEBUG
         if (debug_level >= 4) {          if (debug_level >= 4) {
                 sock_dbg(f);                  sock_dbg(f);
Line 1597 
Line 1599 
                 /*                  /*
                  * send pending ACKs, initial positions, initial volumes                   * send pending ACKs, initial positions, initial volumes
                  */                   */
                 if (!sock_write(f))                  f->pipe.file.state |= FILE_WINUSE;
                   rc = sock_write(f);
                   f->pipe.file.state &= ~FILE_WINUSE;
                   if (f->pipe.file.state & FILE_ZOMB) {
                           file_del(&f->pipe.file);
                           return 0;
                   }
                   if (!rc)
                         break;                          break;
         }          }
         return 1;          return 1;
Line 1631 
Line 1640 
                          * wsock.                           * wsock.
                          */                           */
                         rp = f->pipe.file.rproc;                          rp = f->pipe.file.rproc;
                         if (!rp || !rp->ops->in(rp, NULL))                          if (!rp)
                                 break;                                  break;
   #ifdef DEBUG
                           if (debug_level >= 4) {
                                   aproc_dbg(rp);
                                   dbg_puts(": in\n");
                           }
   #endif
                           if (!rp->ops->in(rp, NULL)) {
                                   break;
                           }
                 }                  }
                 f->pipe.file.state &= ~FILE_RINUSE;                  f->pipe.file.state &= ~FILE_RINUSE;
                 if (f->pipe.file.wproc == NULL)                  if (f->pipe.file.state & FILE_ZOMB) {
                           file_del(&f->pipe.file);
                         return 0;                          return 0;
                   }
         }          }
         return 1;          return 1;
 }  }

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64