httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bh...@gensym.com (Ben Hyde)
Subject Re: chdir isn't thead specific
Date Mon, 11 May 1998 14:54:18 GMT

Brian Behlendorf writes
> +#ifndef WIN32
>      ap_chdir_file(r->filename);
> +#endif

MULTITHREAD?

> +  *) chdir() doesn't make sense in a multithreaded environment like WIN32.
> +     Before, Win32 CGI's could have had sporadic failures if a chdir call
> +     from one thread was made between another chdir call and a spawn in
> +     another thread.  So, for now don't chdir for CGI scripts in WIN32.
> +     The current CGI "spec" is unclear as to whether it's necessary. Long-
> +     term fix is to either serialize the chdir/spawn combo or use WIN32
> +     native calls to spawn a process.  ...

Correct.  It appears that the spawning is already factored out into
os/win32/util_win32.c  os_spawn*()

>       ... This temp fix was necessary to remove 
> +     this as a showstopper for 1.3's release. [Brian Behlendorf]

humm.

  - ben hyde

Mime
View raw message