[mod_python] Re: forks, daemons, and other beasts

Barry Burns bburns at synset.net
Sat Feb 11 22:55:48 EST 2006


> The documentation for thread says that
> 
> When the main thread exits, it is system defined whether the other
> threads survive. On SGI IRIX using the native thread implementation,
> they survive. On most other systems, they are killed without executing
> try ... finally clauses or executing object destructors.
> 
> I tested this and indeed whatever is called with
> thread.start_new_thread it will die if execution reaches the end of
> the original program.

This may be completely off, but how about sending the notification, closing the connection to the client, then unzipping in the same thread? 

-b



More information about the Mod_python mailing list