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

Diff for /src/usr.bin/sndiod/file.c between version 1.18 and 1.19

version 1.18, 2016/01/08 13:09:42 version 1.19, 2016/01/08 16:17:31
Line 258 
Line 258 
                 log_puts("bad state in file_del()\n");                  log_puts("bad state in file_del()\n");
                 panic();                  panic();
         }          }
 #endif  #endif
         file_nfds -= f->max_nfds;          file_nfds -= f->max_nfds;
         f->state = FILE_ZOMB;          f->state = FILE_ZOMB;
 #ifdef DEBUG  #ifdef DEBUG
Line 282 
Line 282 
         if (log_level >= 3)          if (log_level >= 3)
                 clock_gettime(CLOCK_MONOTONIC, &ts0);                  clock_gettime(CLOCK_MONOTONIC, &ts0);
 #endif  #endif
         revents = (f->state != FILE_ZOMB) ?          revents = (f->state != FILE_ZOMB) ?
             f->ops->revents(f->arg, pfd) : 0;              f->ops->revents(f->arg, pfd) : 0;
         if ((revents & POLLHUP) && (f->state != FILE_ZOMB))          if ((revents & POLLHUP) && (f->state != FILE_ZOMB))
                 f->ops->hup(f->arg);                  f->ops->hup(f->arg);
Line 423 
Line 423 
                                 log_puts("out-of-bounds clock delta\n");                                  log_puts("out-of-bounds clock delta\n");
                 }                  }
         }          }
         file_ts = ts;          file_ts = ts;
   
         /*          /*
          * process files that rely on poll           * process files that rely on poll

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