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
28213fd8
Commit
28213fd8
authored
Jun 08, 2012
by
Ross Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lock file cleanup if there's an error early in startup.
parent
2a58c32e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
doc/CHANGES.rst
doc/CHANGES.rst
+2
-0
src/Zope2/Startup/__init__.py
src/Zope2/Startup/__init__.py
+1
-1
src/Zope2/Startup/run.py
src/Zope2/Startup/run.py
+2
-1
No files found.
doc/CHANGES.rst
View file @
28213fd8
...
...
@@ -8,6 +8,8 @@ http://docs.zope.org/zope2/releases/.
2.13.15 (unreleased)
--------------------
- Fix lock file cleanup if there's an error early in startup.
2.13.14 (2012-05-31)
--------------------
...
...
src/Zope2/Startup/__init__.py
View file @
28213fd8
...
...
@@ -303,7 +303,7 @@ class ZopeStarter:
pass
def
unlinkLockFile
(
self
):
if
not
self
.
cfg
.
zserver_read_only_mode
:
if
not
self
.
cfg
.
zserver_read_only_mode
and
hasattr
(
self
,
'lockfile'
)
:
try
:
self
.
lockfile
.
close
()
os
.
unlink
(
self
.
cfg
.
lock_filename
)
...
...
src/Zope2/Startup/run.py
View file @
28213fd8
...
...
@@ -20,8 +20,9 @@ def run():
starter
.
setConfiguration
(
opts
.
configroot
)
try
:
starter
.
prepare
()
finally
:
except
:
starter
.
shutdown
()
raise
starter
.
run
()
def
configure
(
configfile
):
...
...
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