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

Diff for /src/usr.bin/newsyslog/newsyslog.c between version 1.103 and 1.104

version 1.103, 2017/07/14 20:51:17 version 1.104, 2017/07/14 22:17:16
Line 263 
Line 263 
                 sleep(5);                  sleep(5);
   
         /* Step 4, compress the log.0 file if configured to do so and free */          /* Step 4, compress the log.0 file if configured to do so and free */
         TAILQ_FOREACH_SAFE(p, &runlist, next, tmp) {          TAILQ_FOREACH(p, &runlist, next) {
                 if ((p->flags & CE_COMPACT) && (p->flags & CE_ROTATED) &&                  if ((p->flags & CE_COMPACT) && (p->flags & CE_ROTATED) &&
                     p->numlogs > 0)                      p->numlogs > 0)
                         compress_log(p);                          compress_log(p);
                 free(p);  
         }          }
   
         /* Wait for children to finish, then exit */          /* Wait for children to finish, then exit */

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104