-/*
+/*
* log-dump.c --
*
* FastCGI example program to illustrate both an Authorizer and a
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
*/
-
#ifndef lint
-static const char rcsid[] = "$Id: log-dump.c,v 1.3 1999/07/26 05:33:01 roberts Exp $";
+static const char rcsid[] = "$Id: log-dump.c,v 1.5 2001/09/01 01:12:26 robs Exp $";
#endif /* not lint */
-#if defined HAVE_UNISTD_H || defined __linux__
-#include <unistd.h>
-#endif
-#include <sys/types.h>
-#if defined __linux__
-int kill(pid_t pid, int sig);
-#endif
+#include "fcgi_config.h"
-#include "fcgi_stdio.h"
+#include <sys/types.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
-#ifndef NULL
-#define NULL 0
+#if defined __linux__
+int kill(pid_t pid, int sig);
+#endif
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
#endif
+#include "fcgi_stdio.h"
+
static int successCount = 0;
static int failureCount = 0;
int fd, n, i, j;
char temp[4096];
char temp2[5000];
-
+
while(FCGI_Accept() >= 0) {
rolePtr = getenv("FCGI_ROLE");
if(rolePtr == NULL) {
continue;
}
}
-
+
exit(0);
}