retire fcgi' prog field

spawning programs was a hidden feature used only for testing.  It's
gross and when got removed, I forgot to remove the field as well.
This commit is contained in:
Omar Polo 2022-10-05 10:41:54 +00:00
parent c5b4db930e
commit 9715efe6f3
3 changed files with 1 additions and 5 deletions

4
gmid.c
View File

@ -279,15 +279,13 @@ free_config(void)
}
for (i = 0; i < FCGI_MAX; ++i) {
if (fcgi[i].path == NULL && fcgi[i].prog == NULL)
if (fcgi[i].path == NULL)
break;
free(fcgi[i].path);
free(fcgi[i].port);
free(fcgi[i].prog);
fcgi[i].path = NULL;
fcgi[i].port = NULL;
fcgi[i].prog = NULL;
}
tls_free(ctx);

1
gmid.h
View File

@ -100,7 +100,6 @@ struct fcgi {
int id;
char *path;
char *port;
char *prog;
};
extern struct fcgi fcgi[FCGI_MAX];

View File

@ -1182,7 +1182,6 @@ fastcgi_conf(char *path, char *port, char *prog)
f->id = i;
f->path = path;
f->port = port;
f->prog = prog;
return i;
}