Fix mixed declarations and code

This commit is contained in:
Stefan Bühler 2009-03-28 13:34:52 +01:00
parent 418a6844a7
commit 7572c77974
1 changed files with 2 additions and 1 deletions

View File

@ -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) {
int pipes_to[2] = {-1, -1}, pipes_from[2] = {-1, -1}, pipes_err[2] = {-1, -1};
pid_t pid;
if (-1 == pipe(pipes_to)) {
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;
}
pid_t pid = fork();
pid = fork();
switch (pid) {
case 0: {
GPtrArray *enva = cld->fcon->environ;