lock problem

Ritesh Raj Sarraf rrs at researchut.com
Fri Mar 16 03:40:27 EDT 2007


Leo Kislov wrote:

> You're changing environmental variable __kabc_ldap that is shared
> between your threads. Environment is not designed for that kind of
> usage, it was designed for settings. Either use an option to set
> output file or just redirect stdout. If the interface of ldapsearch is
> so lame that it requires environmental variable use env to set the
> variable: "env __kabc_ldap=/tmp/wrjhdsf ldapsearch ..."

The environment variable is set with temp_file_name which gets the name from
tempfile.mkstemp(), which is run in every thread. So I don't think the
environment variable is going to be the same.

Ritesh
-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"




More information about the Python-list mailing list