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
047ee3f4
Commit
047ee3f4
authored
Jan 17, 2003
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use zdaemon.Daemon.run() now that zdaemon.__init__ no longer imports
run from Daemon.
parent
32fc555b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
z2.py
z2.py
+2
-2
No files found.
z2.py
View file @
047ee3f4
...
...
@@ -517,7 +517,7 @@ def set_locale(val):
if
LOCALE_ID
is
not
None
:
set_locale
(
LOCALE_ID
)
import
zdaemon
import
zdaemon
.Daemon
# from this point forward we can use the zope logger
# importing ZDaemon before importing ZServer causes ZServer logging
# not to work.
...
...
@@ -550,7 +550,7 @@ if USE_DAEMON and not READ_ONLY:
# zdaemon.run creates a process which "manages" the actual Zope
# process (restarts it if it dies). The management process passes along
# signals that it receives to its child.
zdaemon
.
run
(
sys
.
argv
,
os
.
path
.
join
(
CLIENT_HOME
,
PID_FILE
))
zdaemon
.
Daemon
.
run
(
sys
.
argv
,
os
.
path
.
join
(
CLIENT_HOME
,
PID_FILE
))
os
.
chdir
(
CLIENT_HOME
)
...
...
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