diff options
author | Martin Mares <mj@ucw.cz> | 2000-06-19 23:50:02 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-06-19 23:50:02 +0000 |
commit | f9eb8f7e066970d56a814128fd49170348a7fbd8 (patch) | |
tree | 110909a619a49857f1a9aa6d76ee89d867263e9b /sysdep/unix/main.c | |
parent | 972fdb45323b75af254cfe6c912c52d3596a230a (diff) |
If compiled with --enable-debug, don't even try to log to syslog unless
the user forces it in the config file.
Diffstat (limited to 'sysdep/unix/main.c')
-rw-r--r-- | sysdep/unix/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sysdep/unix/main.c b/sysdep/unix/main.c index e0e3ca98..2e10521b 100644 --- a/sysdep/unix/main.c +++ b/sysdep/unix/main.c @@ -35,6 +35,12 @@ * Debugging */ +#ifdef DEBUGGING +static int debug_flag = 1; +#else +static int debug_flag = 0; +#endif + void async_dump(void) { @@ -77,7 +83,7 @@ sysdep_preconfig(struct config *c) int sysdep_commit(struct config *new, struct config *old) { - log_switch(&new->logfiles); + log_switch(debug_flag, &new->logfiles); return 0; } @@ -342,12 +348,6 @@ signal_init(void) static char *opt_list = "c:dD:s:"; -#ifdef DEBUGGING -static int debug_flag = 1; -#else -static int debug_flag = 0; -#endif - static void usage(void) { |