tomass wrote:
> Hi Folks,
> 
> I'm trying to fork a new process using os.fork(), and everything seems
> to be working well, except that I need to then reference django models
> from the forked process. This seems to mean I need to reimport all the
> relevant modules into the function that's running as a forked process,
> and I'm then getting an error as follows:
> 
>         server closed the connection unexpectedly
>         This probably means the server terminated abnormally
>         before or while processing the request.

That's probably trouble with the database layer. What does your database
driver say about its threadsafety?

see: http://www.python.org/dev/peps/pep-0249/

What the heck do you try to accomplish with a fork? I mean, your
application is controlled by the http server layer above, and why would
you fork in your application at all?


Michael


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to