Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
0a008baf
Commit
0a008baf
authored
Mar 18, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge from the new-install-branch: work with the slightly modified ZServer
package.
parent
e9f0f6f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
lib/python/Lifetime.py
lib/python/Lifetime.py
+2
-1
lib/python/ZPublisher/HTTPResponse.py
lib/python/ZPublisher/HTTPResponse.py
+4
-3
No files found.
lib/python/Lifetime.py
View file @
0a008baf
...
...
@@ -28,7 +28,8 @@ def shutdown(exit_code,fast = 0):
global
_shutdown_timeout
if
_shutdown_phase
==
0
:
# Thread safety? proably no need to care
sys
.
ZServerExitCode
=
exit_code
import
ZServer
ZServer
.
exit_code
=
exit_code
_shutdown_phase
=
1
if
fast
:
# Someone wants us to shutdown fast. This is hooked into SIGTERM - so possibly
...
...
lib/python/ZPublisher/HTTPResponse.py
View file @
0a008baf
...
...
@@ -12,8 +12,8 @@
##############################################################################
'''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.7
2 2002/12/22 18:31:46 efg
e Exp $'''
__version__
=
'$Revision: 1.7
2
$'
[
11
:
-
2
]
$Id: HTTPResponse.py,v 1.7
3 2003/03/18 21:39:06 fdrak
e Exp $'''
__version__
=
'$Revision: 1.7
3
$'
[
11
:
-
2
]
import
types
,
os
,
sys
,
re
import
zlib
,
struct
...
...
@@ -190,7 +190,8 @@ class HTTPResponse(BaseResponse):
def
_requestShutdown
(
self
,
exitCode
=
0
):
"""Request that the server shut down with exitCode after fulfilling
the current request."""
sys
.
ZServerExitCode
=
exitCode
import
ZServer
ZServer
.
exit_code
=
exitCode
self
.
_shutdown_flag
=
1
def
_shutdownRequested
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment