mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
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:
1 parent
3b2d664563
commit
a2592f4038
15 files changed
+61
-58
No files matched your search
+3
-2
@@ -863,7 +863,7 @@ struct extparam {
|
||||
struct srvparam *services;
|
||||
int stacksize,
|
||||
counterd, haveerror, rotate, paused, archiverc,
|
||||
demon, maxchild, backlog, needreload, timetoexit, version, noforce, bandlimver, parentretries;
|
||||
demon, maxchild, backlog, version, noforce, bandlimver, parentretries;
|
||||
unsigned authcachetype, authcachetime;
|
||||
int filtermaxsize;
|
||||
int poolmax, pooltimeout; /* threadpool: idle workers kept, -1 automatic */
|
||||
@@ -889,7 +889,7 @@ struct extparam {
|
||||
struct auth *authfuncs;
|
||||
FILE *stdlog;
|
||||
unsigned char **stringtable;
|
||||
time_t logtime, time;
|
||||
time_t logtime;
|
||||
unsigned logdumpsrv, logdumpcli;
|
||||
char delimchar;
|
||||
struct nserver nservers[MAXNSERVERS], authnserver;
|
||||
@@ -1025,6 +1025,7 @@ struct pluginlink {
|
||||
int (*parseconnusername)(char *username, struct clientparam *param, int extpasswd, uint16_t port);
|
||||
struct sockfuncs *so;
|
||||
unsigned char * (*dologname) (unsigned char *buf, unsigned char *name, const unsigned char *ext, ROTATION lt, time_t t);
|
||||
int *needreload; /* state of the process rather than configuration */
|
||||
};
|
||||
|
||||
struct counter_header {
|
||||
|
||||
Reference in new issue
Block a user