[Twisted-web] Different behavior of twistd with and without -n

Jean-Paul Calderone exarkun at divmod.com
Thu May 24 11:12:29 EDT 2007


On Thu, 24 May 2007 16:12:28 +0200, Terry Jones <terry at jon.es> wrote:
>I'm not sure if this belongs in Twisted Python or Twisted Web.
>
> [snip - errors with twistd and PyLucene, unreproducable with twistd -n]
>
>While I realize there's probably something up with PyLucene, I'm wondering
>if anyone can suggest why running with twistd -n is preventing the
>crashing.  What else does -n do, other than (presumably) forking and
>running the server in the child?

A completely wild guess is that forking is confusing PyLucene in a fatal
way.  Are you importing PyLucene in the .tac file itself?  If so, it may
help to avoid doing this, so that no code from PyLucene even gets a chance
to run until after the process has already daemonized.

Jean-Paul



More information about the Twisted-web mailing list