Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
6fb57639
Commit
6fb57639
authored
Mar 16, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the acceptor sockets open/bind test earlier.
parent
f10b6dec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mgt_main.c
bin/varnishd/mgt/mgt_main.c
+4
-4
No files found.
bin/varnishd/mgt/mgt_main.c
View file @
6fb57639
...
...
@@ -619,6 +619,10 @@ main(int argc, char * const *argv)
ARGV_ERR
(
"Could not open pid/lock (-P) file (%s): %s
\n
"
,
P_arg
,
strerror
(
errno
));
if
(
MAC_open_sockets
())
ARGV_ERR
(
"Failed to open (any) accept sockets.
\n
"
);
MAC_close_sockets
();
mgt_vcc_init
();
mgt_vcl_init
();
...
...
@@ -635,10 +639,6 @@ main(int argc, char * const *argv)
ARGV_ERR
(
"-C only good with -b or -f
\n
"
);
if
(
!
d_flag
)
{
if
(
MAC_open_sockets
())
ARGV_ERR
(
"Failed to open (any) accept sockets.
\n
"
);
MAC_close_sockets
();
if
(
b_arg
==
NULL
&&
f_arg
==
NULL
)
{
fprintf
(
stderr
,
"Warning: Neither -b nor -f given,"
...
...
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