[Zope] Signals

Chris McDonough chrism@zope.com
Tue, 30 Jul 2002 09:36:50 -0400


The current Zope head allows you to register an interest in a signal
something like:

from SignalHandler import SignalHandler
import signal
SignalHandler.registerHander(signal.SIGHUP, mymethod)

HTH,

- C


----- Original Message -----
From: "Christian Theune" <ct@gocept.com>
To: <zope@zope.org>
Sent: Tuesday, July 30, 2002 6:59 AM
Subject: [Zope] Signals


> Hi.
>
> I currently have a problem regarding signals. I'm using pylog (a
python
> - prolog interface) for some generator code which should be
creating
> Zope objects. The problem is the usage of signals in the pylog
code, to
> detect timeouts when waiting for responses from the prolog
interpreter.
>
> The problem arises with the use of multiple threads where the use
of
> "signal()" is only valid in the main thread. It came to my mind
that
> currently signal handling is going to be implemented in Zope 2.6
afaik
> (zigg, you are doing this, or am i wrong?) and maybe there is some
way
> to provide an infrastructure on distributing signals to methods in
> multiple threads or something like that (if possible).
>
> Cheers
> Christian
>
> --
> Christian Theune - ct@gocept.com
> gocept gmbh & co.kg - schalaunische strasse 6 - 06366
koethen/anhalt
> tel.+49 3641 511586 - fax.+49 3496 3099118 mob. - +49 179 7808366
>
> reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in
'zS^BED\nX_FOY\x0b'])
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>