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

Diff for /src/usr.bin/aucat/Attic/file.c between version 1.7 and 1.8

version 1.7, 2008/11/16 21:16:08 version 1.8, 2008/12/27 14:23:40
Line 111 
Line 111 
         struct file *f, *fnext;          struct file *f, *fnext;
         struct aproc *p;          struct aproc *p;
 #ifdef DEBUG  #ifdef DEBUG
         unsigned nused;          unsigned nused, nfound;
 #endif  #endif
   
         /*          /*
Line 122 
Line 122 
         nfds = 0;          nfds = 0;
 #ifdef DEBUG  #ifdef DEBUG
         nused = 0;          nused = 0;
           nfound = 0;
 #endif  #endif
         LIST_FOREACH(f, &file_list, entry) {          LIST_FOREACH(f, &file_list, entry) {
                 events = 0;                  events = 0;
Line 132 
Line 133 
 #ifdef DEBUG  #ifdef DEBUG
                 if (events)                  if (events)
                         nused++;                          nused++;
                   if (f->rproc || f->wproc)
                           nfound++;
 #endif  #endif
                 DPRINTFN(4, " %s(%x)", f->name, events);                  DPRINTFN(4, " %s(%x)", f->name, events);
                 n = f->ops->pollfd(f, pfds + nfds, events);                  n = f->ops->pollfd(f, pfds + nfds, events);
Line 145 
Line 148 
         DPRINTFN(4, "\n");          DPRINTFN(4, "\n");
   
 #ifdef DEBUG  #ifdef DEBUG
         if (nused == 0 && !LIST_EMPTY(&file_list)) {          if (nused == 0 && nfound > 0) {
                 fprintf(stderr, "file_poll: deadlock\n");                  fprintf(stderr, "file_poll: deadlock\n");
                 abort();                  abort();
         }          }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8