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
9d947e72
Commit
9d947e72
authored
Jun 15, 2002
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't trap SystemExit, or HUP won't work.
parent
2abd9f64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/python/SignalHandler.py
lib/python/SignalHandler.py
+7
-4
No files found.
lib/python/SignalHandler.py
View file @
9d947e72
...
...
@@ -13,7 +13,7 @@
"""Signal handling dispatcher."""
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
from
ZServer
import
asyncore
import
sys
,
os
,
zdaemon
,
ZLogger
...
...
@@ -60,9 +60,12 @@ class SignalHandler:
for
handler
in
self
.
registry
.
get
(
signum
,
[]):
# Never let a bad handler prevent the standard signal
# handlers from running.
try
:
handler
()
except
:
pass
try
:
handler
()
except
SystemExit
:
# if we trap SystemExit, we can't restart
raise
except
:
pass
# Builtin signal handlers for clean shutdown, restart and log rotation.
...
...
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