 +  for (;;)
 +  {
 +    procreadfile(cn);
-+
+ 
 +    if (cn->filedesc == -1)
 +        break;
 +
 +    procsendfile(cn);
 +    usleep(200000); /* don't know why this delay makes it work (yet) */
++  }
 +#endif
  }
 +#endif  /* CONFIG_HTTP_HAS_CGI */

 
diff -Naur awhttpd/permcheck.c axTLS/httpd/awhttpd/permcheck.c
--- awhttpd/permcheck.c	2005-01-23 06:49:29.000000000 +1000
+++ axTLS/httpd/awhttpd/permcheck.c	2006-08-12 18:25:58.421875000 +1000
@@ -7,21 +7,23 @@
 */
 

-
-  #endif
-
 }
 
-
-
 void proccgi(struct connstruct *cn, int has_pathinfo) {
