Make sure the event handlers initialize and register themselves.
This commit is contained in:
parent
fb4832fb88
commit
3fb1474113
11 changed files with 221 additions and 154 deletions
7
status.c
7
status.c
|
@ -33,8 +33,11 @@ STATUS debug(int loglevel, const char *location, const char *function, ...)
|
|||
}
|
||||
|
||||
logfile = fopen(conf->log_file, "a");
|
||||
if (logfile == NULL && conf->foreground) {
|
||||
fprintf(stderr, "Error opening log file: %s\n", strerror(errno));
|
||||
if (logfile == NULL) {
|
||||
if (conf->foreground) {
|
||||
fprintf(stderr, "Error opening log file: %s\n", strerror(errno));
|
||||
}
|
||||
return ST_GENERAL_FAILURE;
|
||||
}
|
||||
|
||||
time(&rawtime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue