Keep the clock, timetoexit and needreload out of conf

They are the state of the process, not configuration: conf.time (now
curtime), timetoexit and needreload are globals of their own. Plugins
reach needreload through a pointer added at the end of struct
pluginlink; LdapPlugin uses it. The extern for a paused global, never
defined, goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Vladimir DubrovinandClaude Opus 5.5 committed 2026-10-13 16:05:33 +03:00
1 parent 3b2d664563
commit a2592f4038
15 files changed
+61 -58

No files matched your search

+4 -3
View File
@@ -200,6 +200,10 @@ char *rotations[] = {
};
/* State of the process, not configuration. */
time_t curtime;
int timetoexit = 0, needreload = 0;
int timeouts[12] = {
1, /* SINGLEBYTE_S */
5, /* SINGLEBYTE_L */
@@ -250,8 +254,6 @@ struct extparam conf = {
.demon = 0,
.maxchild = DEFAULT_MAXCHILD,
.backlog = 0,
.needreload = 0,
.timetoexit = 0,
.version = 0,
.noforce = 0,
.bandlimver = 0,
@@ -290,7 +292,6 @@ struct extparam conf = {
.stdlog = NULL,
.stringtable = NULL,
.logtime = (time_t)0,
.time = (time_t)0,
.logdumpsrv = 0,
.logdumpcli = 0,
.delimchar = '@',