Hi Norbert,

I think that you can reassign this bug to fnord. Ralf tested with the
attached patch to fnord and now mailgraph works for him without
problems. Note that the second chunk of the patch is probably not
needed but I did leave it, since that's what Ralf tested...

The author of fnord is informed and I am discussing with him about this
problem.

Cheers
David
-- 
David Schweikert        | phone: +41 44 632 7019
System manager ISG.EE   | walk:  ETH Zentrum, ETL F24.1
ETH Zurich, Switzerland | web:   http://people.ee.ethz.ch/dws
--- httpd.c.orig        2005-08-03 13:32:50.000000000 +0200
+++ httpd.c     2005-10-13 21:35:58.912929000 +0200
@@ -531,7 +531,7 @@
 
       while(poll(pfd,nr,-1)!=-1) {
        /* read from cgi */
-       if (pfd[0].revents&POLLIN) {
+       if (pfd[0].revents&(POLLIN|POLLHUP)) {
          if (!(n=read(fd[0],ibuf,sizeof(ibuf)))) break;
          if (n<0) goto cgi_500;
          /* startup */
@@ -564,7 +564,7 @@
            buffer_put(buffer_1,ibuf,n);
          }
          size+=n;
-         if (pfd[0].revents&POLLHUP) break;
+         /*if (pfd[0].revents&POLLHUP) break;*/
        }
        /* write to cgi the post data */
        else if (nr>1 && pfd[1].revents&POLLOUT) {
@@ -583,7 +583,6 @@
            close(df[1]);
          }
        }
-       else if (pfd[0].revents&POLLHUP) break;
        else {
 cgi_500:  if (startup)
            badrequest(500,"Internal Server Error","Looks like the CGI 
crashed.");

Reply via email to