#include "lib/lib.h"
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
static char *log_name_patt;
static int log_params;
static int log_filename_size;
-int log_switch_nest;
+volatile int log_switch_nest;
static int
do_log_switch(struct tm *tm)
log_filename[0] = 0;
log_switch();
log_switch_hook = internal_log_switch;
- close(0);
- open("/dev/null", O_RDWR, 0);
}
}