[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] CVS: Zope/lib/python/nt_svcutils -
From:       Tim Peters <tim.one () comcast ! net>
Date:       2005-06-20 20:43:38
Message-ID: 20050620204338.821F22032D6 () mail ! zope ! org
[Download RAW message or body]

Update of /cvs-repository/Zope/lib/python/nt_svcutils
In directory cvs.zope.org:/tmp/cvs-serv5742/lib/python/nt_svcutils

Modified Files:
      Tag: Zope-2_7-branch
	service.py 
Log Message:
Shut down cleanly when Windows is shutting down.


=== Zope/lib/python/nt_svcutils/service.py 1.1.2.5 => 1.1.2.6 ===
--- Zope/lib/python/nt_svcutils/service.py:1.1.2.5	Wed Jun  8 11:33:21 2005
+++ Zope/lib/python/nt_svcutils/service.py	Mon Jun 20 16:43:37 2005
@@ -85,6 +85,11 @@
         # Set the stop event - the main loop takes care of termination.
         win32event.SetEvent(self.hWaitStop)
 
+    # SvcStop only gets triggered when the user explictly stops (or restarts)
+    # the service.  To shut the service down cleanly when Windows is shutting
+    # down, we also need to hook SvcShutdown.
+    SvcShutdown = SvcStop
+
     def onStop(self):
         # A hook for subclasses to override
         pass

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic