8
7
#include "master-settings.h"
13
PROCESS_TYPE_AUTH_WORKER,
17
PROCESS_TYPE_SSL_PARAM,
23
9
extern struct ioloop *ioloop;
24
extern struct hash_table *pids;
25
10
extern int null_fd, inetd_login_fd;
26
11
extern uid_t master_uid;
27
12
extern char program_path[];
28
extern const char *process_names[];
29
13
extern char ssl_manual_key_password[];
14
extern const char *env_tz;
31
19
#define IS_INETD() \
32
20
(inetd_login_fd != -1)
35
#define PID_GET_PROCESS_TYPE(pid) \
36
POINTER_CAST_TO(hash_lookup(pids, POINTER_CAST(pid)), pid_t)
38
#define PID_ADD_PROCESS_TYPE(pid, type) \
39
hash_insert(pids, POINTER_CAST(pid), POINTER_CAST(type))
41
#define PID_REMOVE_PROCESS_TYPE(pid) \
42
hash_remove(pids, POINTER_CAST(pid))
44
void child_process_init_env(void);
45
void client_process_exec(const char *cmd, const char *title);
48
#define VALIDATE_STR(str) \
49
validate_str(str, sizeof(str))
50
bool validate_str(const char *str, size_t max_len);