X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fcallscgi.c;h=062baa1fd01bd1e49cab1a1eda52407d187cf44a;hb=254eb937b8c3298a191863e88e39f9a5035fabf9;hp=e91759e46c32b04ac92e28b9a05f8fcb85f3dec7;hpb=e25bf4f9646b5ee2cfe363fca67a32d4e2a3f0cc;p=ashd.git diff --git a/src/callscgi.c b/src/callscgi.c index e91759e..062baa1 100644 --- a/src/callscgi.c +++ b/src/callscgi.c @@ -428,8 +428,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) @@ -595,6 +595,7 @@ static void sigign(int sig) static void sigexit(int sig) { + shutdown(0, SHUT_RDWR); exit(0); }