mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
Merge branch 'tmp-share-vars' into 'master'
worker.h: share OCSERV_ENV_WORKER_STARTUP_MSG between main and worker See merge request openconnect/ocserv!250
This commit is contained in:
@@ -76,13 +76,8 @@ extern const ASN1_ARRAY_TYPE kkdcp_asn1_tab[];
|
||||
ASN1_TYPE _kkdcp_pkix1_asn = ASN1_TYPE_EMPTY;
|
||||
#endif
|
||||
|
||||
// Name of environment variable used to pass worker_startup_msg
|
||||
// between ocserv-main and ocserv-worker.
|
||||
#define OCSERV_ENV_WORKER_STARTUP_MSG "OCSERV_WORKER_STARTUP_MSG"
|
||||
|
||||
extern struct snapshot_t * config_snapshot;
|
||||
|
||||
|
||||
int worker_argc = 0;
|
||||
char **worker_argv = NULL;
|
||||
|
||||
|
||||
@@ -42,10 +42,6 @@ extern const ASN1_ARRAY_TYPE kkdcp_asn1_tab[];
|
||||
ASN1_TYPE _kkdcp_pkix1_asn = ASN1_TYPE_EMPTY;
|
||||
#endif
|
||||
|
||||
// Name of environment variable used to pass worker_startup_msg
|
||||
// between ocserv-main and ocserv-worker.
|
||||
#define OCSERV_ENV_WORKER_STARTUP_MSG "OCSERV_WORKER_STARTUP_MSG"
|
||||
|
||||
extern struct snapshot_t *config_snapshot;
|
||||
|
||||
int syslog_open = 0;
|
||||
|
||||
@@ -40,6 +40,10 @@
|
||||
#include "vhost.h"
|
||||
#include "ev.h"
|
||||
|
||||
// Name of environment variable used to pass worker_startup_msg
|
||||
// between ocserv-main and ocserv-worker.
|
||||
#define OCSERV_ENV_WORKER_STARTUP_MSG "OCSERV_WORKER_STARTUP_MSG"
|
||||
|
||||
typedef enum {
|
||||
UP_DISABLED,
|
||||
UP_WAIT_FD,
|
||||
|
||||
Reference in New Issue
Block a user