[Zope-CVS] CVS: Zope - z2.py:1.79

Chris McDonough chrism@zope.com
Tue, 6 Aug 2002 11:36:54 -0400


Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv3636

Modified Files:
	z2.py 
Log Message:
Changed signal handler code.

SignalHandler module now lives in zdaemon package, so it may be shared
between ZEO and Zope.

The SignalHandler module in lib/python was removed in favor of the
module in zdaemon.

The zdaemon SignalHandler doesn't register any default signals.

There is a new package in lib/python named Signals.  This package
contains signal handlers and registry functions used by z2.py
to register Zope-specific signals with the SignalHandler registry.



=== Zope/z2.py 1.78 => 1.79 ===
 
 # install signal handlers if on posix
 if os.name == 'posix':
-    from SignalHandler import SignalHandler
+    from Signals import Signals
+    Signals.registerZopeSignals()
 
 if Zpid and not READ_ONLY:
     import App.FindHomes