On Wed, 2010-07-28 at 15:14 +0400, twisted-...@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: http://twistedmatrix.com/documents/current/core/howto/process.html Also, an example: http://twistedmatrix.com/trac/browser/tags/releases/twisted-10.1.0/twisted/runner/inetd.py _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python