Commit 8e527e84 authored by Fred Drake's avatar Fred Drake

- sys.ZServerExitCode becomes ZServer.exit_code

parent f98a9ec6
...@@ -28,7 +28,8 @@ def shutdown(exit_code,fast = 0): ...@@ -28,7 +28,8 @@ def shutdown(exit_code,fast = 0):
global _shutdown_timeout global _shutdown_timeout
if _shutdown_phase == 0: if _shutdown_phase == 0:
# Thread safety? proably no need to care # Thread safety? proably no need to care
sys.ZServerExitCode = exit_code import ZServer
ZServer.exit_code = exit_code
_shutdown_phase = 1 _shutdown_phase = 1
if fast: if fast:
# Someone wants us to shutdown fast. This is hooked into SIGTERM - so possibly # Someone wants us to shutdown fast. This is hooked into SIGTERM - so possibly
...@@ -78,4 +79,4 @@ def graceful_shutdown_loop(): ...@@ -78,4 +79,4 @@ def graceful_shutdown_loop():
# No vetos? That is one step closer to shutting down # No vetos? That is one step closer to shutting down
_shutdown_phase += 1 _shutdown_phase += 1
timestamp = time.time() timestamp = time.time()
\ No newline at end of file
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