1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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
This commit is contained in:
Garance A Drosehn 2004-06-12 19:53:08 +00:00
parent 6ef5ab3cb5
commit c8fd7c3227
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130385

View File

@ -90,6 +90,9 @@ __FBSDID("$FreeBSD$");
/* Define this symbol to try out the "new order" for work items. */ /* Define this symbol to try out the "new order" for work items. */
#define TRY_NEWORDER #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. * 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); SLIST_HEAD(zwlisthead, zipwork_entry) zwhead = SLIST_HEAD_INITIALIZER(zwhead);
int dbg_at_times; /* -D Show details of 'trim_at' code */ 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 archtodir = 0; /* Archive old logfiles to other directory */
int createlogs; /* Create (non-GLOB) logfiles which do not */ int createlogs; /* Create (non-GLOB) logfiles which do not */