[Twisted-Python] What is the minimum effort solution to make inetd-managed twisted-based application?

Alexey twisted-web at udmvt.ru
Thu Jul 29 03:22:25 EDT 2010

On Wed, Jul 28, 2010 at 08:10:48AM -0400, Itamar Turner-Trauring wrote:
> On Wed, 2010-07-28 at 15:14 +0400, twisted-web at udmvt.ru wrote:
> > The second file is a UNIX program, it uses socketpair() and then fork()
> > to start both client and server, they talk each other via PB protocol.
> > Running that produces some noise to the screen and then they exit.
> You probably want to use reactor.spawnProcess, not fork - it also allows
> you to pass arbitrary file descriptors to the child process:
> http://twistedmatrix.com/documents/current/core/howto/process.html
Yes, ofcourse, in real program I'd use that.
But for demo purposes I decided to place all code into single python program.

> Also, an example:
> http://twistedmatrix.com/trac/browser/tags/releases/twisted-10.1.0/twisted/runner/inetd.py

> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


More information about the Twisted-Python mailing list