*
*/
#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 <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <io.h>
#include "fcgi_config.h"
#ifdef _WIN32
#include <stdlib.h>
+#include <io.h>
#else
extern char **environ;
#endif
#include <sys/time.h>
#endif
-#if defined HAVE_UNISTD_H
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
static void FCGIexit(int exitCode)
{
if(appServerSock != -1) {
- OS_Close(appServerSock);
+ OS_Close(appServerSock, TRUE);
appServerSock = -1;
}
OS_LibShutdown();
exit(FCGX_PROTOCOL_ERROR);
}
if(appServerSock != -1) {
- OS_Close(appServerSock);
+ OS_Close(appServerSock, TRUE);
appServerSock = -1;
}
/*
exit(OS_Errno);
}
}
- OS_Close(listenFd);
+ OS_Close(listenFd, TRUE);
}
\f
/*