httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <...@covalent.net>
Subject Re: mod_cgid - too many open files
Date Thu, 29 Mar 2001 16:00:51 GMT

> > This is not the best solution though. Could probably make it more efficient by ditching
> > the APR calls and doing something like this...
> >
> > cgid_process
> > while(1)
> >      sd2 = accept()
> >      apr_create_pool()
> >      read(sd2,*) to setup env, blah, blah, blah from main server
> >      pid = fork()
> >      if (pid == 0) {
> >        /* in the child */
> >        dup2(sd2, STDIN);
> >        dup2(sd2, STDOUT)
> >         dup2(sd2, STDERR);
> >         close(sd2);
> >          exec()
> >          exit -1
> >      } else {
> >      /* parent */
> >          close(sd2);
> >      }
>
> dunno...  Ryan's comment when he committed the changes was that it
> helped fit in suexec support...  (it is my understanding that suexec
> still doesn't work with mod_cgid)

The last time I looked at cgid and suexec, it did work.  I have served
bugs.apache.org on a threaded MPM in the past, so I am 99.9% sure that
suexec at least used to work.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message