From a1214ecb7b3a5536b459a68adb96489226a904ad Mon Sep 17 00:00:00 2001 From: gad Date: Sat, 12 Jun 2004 19:53:08 +0000 Subject: Switch to using the "neworder" for rotating log files, by default. The main advantage of this is that daemon's are only signalled once per run, instead of once for each file that is rotated. MFC after: 2 weeks --- usr.sbin/newsyslog/newsyslog.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index ea99374..bc8dcdb 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -90,6 +90,9 @@ __FBSDID("$FreeBSD$"); /* Define this symbol to try out the "new order" for work items. */ #define TRY_NEWORDER +#ifndef USE_NEWORDER +#define USE_NEWORDER 1 /* Initial value for dbg_new_order */ +#endif /* * Bit-values for the 'flags' parsed from a config-file entry. @@ -162,7 +165,12 @@ SLIST_HEAD(swlisthead, sigwork_entry) swhead = SLIST_HEAD_INITIALIZER(swhead); SLIST_HEAD(zwlisthead, zipwork_entry) zwhead = SLIST_HEAD_INITIALIZER(zwhead); int dbg_at_times; /* -D Show details of 'trim_at' code */ -int dbg_new_order; /* -D Try the 'neworder' of doing the work */ +/* + * The debug options "neworder" and "oldorder" can be used to change + * which order work is done in. Note that both options will disappear + * in the near future, and the "new" order will be the only order. + */ +int dbg_new_order = USE_NEWORDER; int archtodir = 0; /* Archive old logfiles to other directory */ int createlogs; /* Create (non-GLOB) logfiles which do not */ -- cgit v1.1