From 3fda08e40532245ba69e14cdac0623a138b939f9 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 4 Dec 2018 16:55:25 +0100 Subject: Unix: Change debugging options The old behavior was that enabling debugging did many nontrivial changes in BIRD behavior. The patch changes it that these changes are generally independent. Compiling with --enable-debug now just enables compile-time debug macros, but do not automatically activate debug mode (-d) nor local mode (-l). Debug mode with output to file (-D) do not force foreground mode (-f), therefore there is no need for backgroud option (-b), which is removed. Also fixes a bug when the default log target in -D mode was stderr instead of given debug file. --- sysdep/unix/unix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdep/unix/unix.h') diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h index 12306167..0e1e98c0 100644 --- a/sysdep/unix/unix.h +++ b/sysdep/unix/unix.h @@ -116,7 +116,7 @@ void krt_io_init(void); void main_thread_init(void); void log_init_debug(char *); /* Initialize debug dump to given file (NULL=stderr, ""=off) */ -void log_switch(int debug, list *l, char *); /* Use l=NULL for initial switch */ +void log_switch(int initial, list *l, char *); struct log_config { node n; -- cgit v1.2.3