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
560de227
Commit
560de227
authored
Aug 10, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be a bit more clear on this, hoping Coverity will catch the drift.
parent
71a83537
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
mgt_acceptor.c
bin/varnishd/mgt/mgt_acceptor.c
+9
-7
No files found.
bin/varnishd/mgt/mgt_acceptor.c
View file @
560de227
...
...
@@ -62,13 +62,15 @@ mac_opensocket(struct listen_sock *ls, struct cli *cli)
}
ls
->
sock
=
VTCP_bind
(
ls
->
addr
,
NULL
);
fail
=
errno
;
if
(
ls
->
sock
>=
0
)
mgt_child_inherit
(
ls
->
sock
,
"sock"
);
if
(
cli
!=
NULL
&&
ls
->
sock
<
0
)
{
VCLI_Out
(
cli
,
"Could not get socket %s: %s
\n
"
,
ls
->
name
,
strerror
(
errno
));
if
(
ls
->
sock
<
0
)
{
if
(
cli
!=
NULL
)
VCLI_Out
(
cli
,
"Could not get socket %s: %s
\n
"
,
ls
->
name
,
strerror
(
errno
));
AN
(
fail
);
return
(
fail
);
}
return
(
fail
);
mgt_child_inherit
(
ls
->
sock
,
"sock"
);
return
(
0
);
}
/*=====================================================================
...
...
@@ -152,7 +154,7 @@ MAC_Validate(void)
VJ_master
(
JAIL_MASTER_PRIVPORT
);
fail
=
mac_opensocket
(
ls
,
NULL
);
VJ_master
(
JAIL_MASTER_LOW
);
if
(
ls
->
sock
<
0
)
if
(
fail
)
ARGV_ERR
(
"Cannot open socket: %s: %s
\n
"
,
ls
->
name
,
strerror
(
fail
));
if
(
VSA_Port
(
ls
->
addr
)
==
0
)
{
...
...
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