Changeset 763


Ignore:
Timestamp:
07/14/06 01:16:04 (6 years ago)
Author:
wd
Message:

Fix the actual breakage in log.c. Mark the log rule defunct BEFORE saying
it's broken.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/log/log.c

    r609 r763  
    123123 
    124124                    if ((lhp->file = fopen(fname, "a")) == NULL) { 
     125                        /* Be sure to set DEFUNCT *first* to avoid nasty log 
     126                         * recursion!  This way when we come back around to 
     127                         * this rule we will not hit it again. */ 
     128                        lhp->flags |= LOG_FL_DEFUNCT; 
    125129                        log_error("cannot open logfile %s: %s", 
    126130                                lhp->filename, strerror(errno)); 
    127                         lhp->flags |= LOG_FL_DEFUNCT; 
    128131                    } 
    129132                } 
Note: See TracChangeset for help on using the changeset viewer.