Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
19d3552e
Commit
19d3552e
authored
Feb 18, 2004
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not complain about being installed when something is already listening on the
port we plan to listen on.
parent
95b39953
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
src/ZEO/mkzeoinst.py
src/ZEO/mkzeoinst.py
+0
-11
No files found.
src/ZEO/mkzeoinst.py
View file @
19d3552e
...
...
@@ -160,7 +160,6 @@ class ZEOInstanceBuilder:
port
=
int
(
args
[
1
])
else
:
port
=
9999
checkport
(
port
)
params
=
self
.
get_params
(
zodb3_home
,
instance_home
,
port
)
self
.
create
(
instance_home
,
params
)
...
...
@@ -186,16 +185,6 @@ class ZEOInstanceBuilder:
makexfile
(
runzeo_template
,
home
,
"bin"
,
"runzeo"
,
**
params
)
def
checkport
(
port
):
import
socket
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
try
:
s
.
bind
((
""
,
port
))
except
socket
.
error
:
print
"A process is already listening on port %d"
%
port
sys
.
exit
(
2
)
s
.
close
()
def
which
(
program
):
strpath
=
os
.
getenv
(
"PATH"
)
binpath
=
strpath
.
split
(
os
.
pathsep
)
...
...
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