lock problem

Leo Kislov Leo.Kislov at gmail.com
Fri Mar 16 04:46:06 EDT 2007


On Mar 16, 12:40 am, Ritesh Raj Sarraf <r... at researchut.com> wrote:
> 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.

But you miss the fact that there is only one environment per process.

  -- Leo




More information about the Python-list mailing list