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

Itamar Turner-Trauring itamar at itamarst.org
Wed Jul 28 08:10:48 EDT 2010

On Wed, 2010-07-28 at 15:14 +0400, twisted-web at udmvt.ru wrote:
> After all, I'm posting my angry code.
> The first file is a module with some classes, that can be used
> to accomplish my task.
> 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:


Also, an example:

More information about the Twisted-Python mailing list