httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: multithreaded unix cgi's
Date Fri, 15 Dec 2000 17:05:09 GMT
"Allan Edwards" <ake@meepzor.com> writes:

> One of the hoops we have to jump through for Windows
> (because it is multithreaded)is to build the correct 
> path for cgi executables.
> 
> I believe the multithreaded unix mpm is now in the same 
> boat and the following chdir code from apr_create_process 
> is broken, correct?
> 
>    if (attr->currdir != NULL) {
>      if (chdir(attr->currdir) == -1) 
>             exit(-1);   /* We have big problems, the child should exit. */
>       }
>    }

It looks to me that this code runs in the new process (before we run
the desired program), so the chdir() doesn't affect the process that
wanted to run the desired program.

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message