Fix mixed declarations and code
This commit is contained in:
parent
418a6844a7
commit
7572c77974
@ -338,6 +338,7 @@ static void fcgi_cgi_child_error(fcgi_cgi_child *cld) {
|
|||||||
|
|
||||||
static void fcgi_cgi_child_start(fcgi_cgi_child *cld, const gchar *path) {
|
static void fcgi_cgi_child_start(fcgi_cgi_child *cld, const gchar *path) {
|
||||||
int pipes_to[2] = {-1, -1}, pipes_from[2] = {-1, -1}, pipes_err[2] = {-1, -1};
|
int pipes_to[2] = {-1, -1}, pipes_from[2] = {-1, -1}, pipes_err[2] = {-1, -1};
|
||||||
|
pid_t pid;
|
||||||
|
|
||||||
if (-1 == pipe(pipes_to)) {
|
if (-1 == pipe(pipes_to)) {
|
||||||
ERROR("couldn't create pipe: %s\n", g_strerror(errno));
|
ERROR("couldn't create pipe: %s\n", g_strerror(errno));
|
||||||
@ -354,7 +355,7 @@ static void fcgi_cgi_child_start(fcgi_cgi_child *cld, const gchar *path) {
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pid_t pid = fork();
|
pid = fork();
|
||||||
switch (pid) {
|
switch (pid) {
|
||||||
case 0: {
|
case 0: {
|
||||||
GPtrArray *enva = cld->fcon->environ;
|
GPtrArray *enva = cld->fcon->environ;
|
||||||
|
Loading…
Reference in New Issue
Block a user