mirror of https://github.com/omar-polo/gmid.git
rename PROC_MAX to PREFORK_MAX
This commit is contained in:
parent
4267093e37
commit
3a8c76eab2
2
gmid.c
2
gmid.c
|
@ -45,7 +45,7 @@ struct vhosthead hosts;
|
||||||
|
|
||||||
int sock4, sock6;
|
int sock4, sock6;
|
||||||
|
|
||||||
struct imsgbuf logibuf, servibuf[PROC_MAX];
|
struct imsgbuf logibuf, servibuf[PREFORK_MAX];
|
||||||
|
|
||||||
const char *config_path = "/etc/gmid.conf";
|
const char *config_path = "/etc/gmid.conf";
|
||||||
const char *pidfile;
|
const char *pidfile;
|
||||||
|
|
6
gmid.h
6
gmid.h
|
@ -81,7 +81,7 @@
|
||||||
#define FCGI_VAL_MAX 511
|
#define FCGI_VAL_MAX 511
|
||||||
|
|
||||||
#define FCGI_MAX 32
|
#define FCGI_MAX 32
|
||||||
#define PROC_MAX 16
|
#define PREFORK_MAX 16
|
||||||
|
|
||||||
struct iri {
|
struct iri {
|
||||||
char *schema;
|
char *schema;
|
||||||
|
@ -210,9 +210,9 @@ struct conf {
|
||||||
extern const char *config_path;
|
extern const char *config_path;
|
||||||
extern struct conf conf;
|
extern struct conf conf;
|
||||||
|
|
||||||
extern struct imsgbuf logibuf, servibuf[PROC_MAX];
|
extern struct imsgbuf logibuf, servibuf[PREFORK_MAX];
|
||||||
|
|
||||||
extern int servpipes[PROC_MAX];
|
extern int servpipes[PREFORK_MAX];
|
||||||
|
|
||||||
typedef void (imsg_handlerfn)(struct imsgbuf*, struct imsg*, size_t);
|
typedef void (imsg_handlerfn)(struct imsgbuf*, struct imsg*, size_t);
|
||||||
|
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -1126,7 +1126,7 @@ check_port_num(int n)
|
||||||
int
|
int
|
||||||
check_prefork_num(int n)
|
check_prefork_num(int n)
|
||||||
{
|
{
|
||||||
if (n <= 0 || n >= PROC_MAX)
|
if (n <= 0 || n >= PREFORK_MAX)
|
||||||
yyerror("invalid prefork number %d", n);
|
yyerror("invalid prefork number %d", n);
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
/* to make the linker happy */
|
/* to make the linker happy */
|
||||||
struct conf conf;
|
struct conf conf;
|
||||||
struct imsgbuf logibuf, servibuf[PROC_MAX];
|
struct imsgbuf logibuf, servibuf[PREFORK_MAX];
|
||||||
|
|
||||||
const struct suite {
|
const struct suite {
|
||||||
const char *src;
|
const char *src;
|
||||||
|
|
Loading…
Reference in New Issue