X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=cgi-fcgi%2Fcgi-fcgi.c;h=a5c75b1cd9a05e39e50d001755a3ccfe34cb3438;hb=HEAD;hp=e04bb229622b5c0a94ca54fdf85dc8e8d9577781;hpb=80251b63bac862069223910bd3ddce76555463be;p=catagits%2Ffcgi2.git diff --git a/cgi-fcgi/cgi-fcgi.c b/cgi-fcgi/cgi-fcgi.c index e04bb22..a5c75b1 100644 --- a/cgi-fcgi/cgi-fcgi.c +++ b/cgi-fcgi/cgi-fcgi.c @@ -6,12 +6,12 @@ * * Copyright (c) 1996 Open Market, Inc. * - * See the file "LICENSE.TERMS" for information on usage and redistribution + * See the file "LICENSE" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * */ #ifndef lint -static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.13 2001/06/22 14:21:34 robs Exp $"; +static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.16 2003/06/22 02:02:33 robs Exp $"; #endif /* not lint */ #include @@ -21,7 +21,6 @@ static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.13 2001/06/22 14:21:34 robs Exp #include #include #include -#include #include "fcgi_config.h" @@ -31,6 +30,7 @@ static const char rcsid[] = "$Id: cgi-fcgi.c,v 1.13 2001/06/22 14:21:34 robs Exp #ifdef _WIN32 #include +#include #else extern char **environ; #endif @@ -43,7 +43,7 @@ extern char **environ; #include #endif -#if defined HAVE_UNISTD_H +#ifdef HAVE_UNISTD_H #include #endif @@ -188,7 +188,7 @@ static int stdinFds[3]; static void FCGIexit(int exitCode) { if(appServerSock != -1) { - OS_Close(appServerSock); + OS_Close(appServerSock, TRUE); appServerSock = -1; } OS_LibShutdown(); @@ -232,7 +232,7 @@ static void AppServerReadHandler(ClientData dc, int bytesRead) exit(FCGX_PROTOCOL_ERROR); } if(appServerSock != -1) { - OS_Close(appServerSock); + OS_Close(appServerSock, TRUE); appServerSock = -1; } /* @@ -531,7 +531,7 @@ static void FCGI_Start(char *bindPath, char *appPath, int nServers) exit(OS_Errno); } } - OS_Close(listenFd); + OS_Close(listenFd, TRUE); } /*