[Twisted-Python] Default reactor without signal handling

Itamar Shtull-Trauring itamar at itamarst.org
Tue Apr 8 21:16:13 MDT 2003


On Tue, 08 Apr 2003 22:26:12 -0400
Peter Hansen <peter at engcorp.com> wrote:

> In twisted.internet.reactor, a call to
> twisted.internet.default.install() is made automatically.  That call
> constructs a SelectReactor with signal handling enabled, without any
> option for avoiding this behaviour.
> 
> What's the recommended approach for installing a reactor without the
> signal handling behaviour turned on?

In 1.0.4 and CVS (soon to be released, we hope), you can do:

   reactor.run(installSignalHandlers=0)

-- 
Itamar Shtull-Trauring    http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting




More information about the Twisted-Python mailing list