X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcallfcgi.c;h=9af59299e79594a21e5a10b3a5317ceb667be540;hb=254eb937b8c3298a191863e88e39f9a5035fabf9;hp=1ff521e6b56cfa1fd303fef1a90aa6510ebfe5e5;hpb=e25bf4f9646b5ee2cfe363fca67a32d4e2a3f0cc;p=ashd.git diff --git a/src/callfcgi.c b/src/callfcgi.c index 1ff521e..9af5929 100644 --- a/src/callfcgi.c +++ b/src/callfcgi.c @@ -465,8 +465,8 @@ static void mkcgienv(struct hthead *req, struct charbuf *dst) } else { bufaddenv(dst, "SCRIPT_NAME", "%s", url); } - free(url); bufaddenv(dst, "QUERY_STRING", "%s", qp?qp:""); + free(url); if((h = getheader(req, "Host")) != NULL) bufaddenv(dst, "SERVER_NAME", "%s", h); if((h = getheader(req, "X-Ash-Server-Port")) != NULL) @@ -806,6 +806,7 @@ static void sigign(int sig) static void sigexit(int sig) { + shutdown(0, SHUT_RDWR); exit(0); }