 +#endif  /* CONFIG_HTTP_PERM_CHECK */
 diff -Naur awhttpd/proc.c axTLS/httpd/awhttpd/proc.c
 --- awhttpd/proc.c	2005-01-23 10:59:41.000000000 +1000
-+++ axTLS/httpd/awhttpd/proc.c	2006-08-12 18:26:51.093750000 +1000
++++ axTLS/httpd/awhttpd/proc.c	2006-08-12 19:16:59.703125000 +1000
 @@ -13,91 +13,92 @@
  #include <sys/types.h>
  #include <sys/stat.h>

+  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/misc.c axTLS/httpd/awhttpd/misc.c
--- awhttpd/misc.c	2005-01-23 12:59:09.000000000 +1000
+++ axTLS/httpd/awhttpd/misc.c	2006-08-12 19:16:59.703125000 +1000
@@ -7,33 +7,33 @@
 */
 
