Commit 2edac8b3 authored by Chris McDonough's avatar Chris McDonough

Really shutdown if we exit with status 0.

parent 15ee2f8a
......@@ -124,7 +124,11 @@ class ZopeService(win32serviceutil.ServiceFramework):
# user did not send a service stop request, but
# the process died; this may be an error condition
status = win32process.GetExitCodeProcess(self.hZope)
if status != 0:
if status == 0:
# the user shut the process down from the web
# interface (or it otherwise exited cleanly)
break
else:
# this was an abormal shutdown. if we can, we want to
# restart the process but if it seems hopeless,
# don't restart an infinite number of times.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment