[mod_python] Another threading issue: chdir
Stéphane Bidoul
sbi at acse.be
Thu Jun 8 17:28:31 EST 2000
Hi again,
Obviously, chdir is not thread-safe
(I discovered the problem by running different
handlers in different directories)
It's ok with the one performed in cgihandler,
since cgi must run single-threaded anyway.
I wonder if the one in mod_python.c is really necessary?
Maybe apache.import_module() could add the directory to
pythonpath before doing the import instead of adding '.'.
Oh, and now that I write it, changing python path is
not thread-safe either: can we do the import without
changing pythonpath at all? If not, another lock
will be required to protect that...
There is also a chdir in the httpdapi handler
but I've no idea about that one.
Well, I hope the end of the threading tunnel is in sight...
-sbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?Windows-1252?Q?St=E9phane_Bidoul.vcf?=
Type: text/x-vcard
Size: 361 bytes
Desc: not available
Url : http://mailman.modpython.org/pipermail/mod_python/attachments/20000608/ea5f5f9f/Windows-1252QStE9phane_Bidoul.vcf
More information about the Mod_python
mailing list