[Zodb-checkins] CVS: ZODB3/zdaemon - Daemon.py:1.17

Guido van Rossum guido@python.org
Thu, 7 Nov 2002 16:35:03 -0500


Update of /cvs-repository/ZODB3/zdaemon
In directory cvs.zope.org:/tmp/cvs-serv27619

Modified Files:
	Daemon.py 
Log Message:
Due to the way get_signal_name() was coded, it was possible that
SIGHUP was reported as SIG_IGN.  Fix this by requiring signal names
not to start with "SIG_".


=== ZODB3/zdaemon/Daemon.py 1.16 => 1.17 ===
--- ZODB3/zdaemon/Daemon.py:1.16	Wed Oct 30 13:51:15 2002
+++ ZODB3/zdaemon/Daemon.py	Thu Nov  7 16:35:02 2002
@@ -143,6 +143,6 @@
             startswith = getattr(k, 'startswith', None)
             if startswith is None:
                 continue
-            if startswith('SIG'):
+            if startswith('SIG') and not startswith('SIG_'):
                 _signals[v] = k
     return _signals.get(n, 'unknown')