[Twisted-Python] Problem combining pb and spawnProcess[3]

Glyph Lefkowitz glyph at twistedmatrix.com
Fri Jun 13 13:56:52 EDT 2003

On Friday, June 13, 2003, at 10:44 AM, Stefan Fleiter wrote:

>     def remote_dir(self):
>         pp = ABPP(self.receiver)
>         command = ['/bin/ls']
>         reactor.spawnProcess(pp, command[0], command, env=os.environ)
>         reactor.run()

Remove the 'reactor.run()' here.  It should probably raise an 
exception, since the reactor is not reentrant, but there is no reason 
that you would need to do this.

More information about the Twisted-Python mailing list