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
8bf6c6d2
Commit
8bf6c6d2
authored
Apr 23, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also reflect the VCC exit code through if -C is specified.
Fixes #1069
parent
cab6375c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
mgt_vcc.c
bin/varnishd/mgt/mgt_vcc.c
+6
-8
No files found.
bin/varnishd/mgt/mgt_vcc.c
View file @
8bf6c6d2
...
...
@@ -394,18 +394,16 @@ mgt_vcc_default(const char *b_arg, const char *f_arg, char *vcl, int C_flag)
if
(
VSB_len
(
sb
)
>
0
)
fprintf
(
stderr
,
"%s"
,
VSB_data
(
sb
));
VSB_delete
(
sb
);
if
(
C_flag
)
{
if
(
vf
!=
NULL
)
AZ
(
unlink
(
vf
));
return
(
0
);
}
if
(
C_flag
&&
vf
!=
NULL
)
AZ
(
unlink
(
vf
));
if
(
vf
==
NULL
)
{
fprintf
(
stderr
,
"
\n
VCL compilation failed
\n
"
);
return
(
1
);
}
else
{
vp
=
mgt_vcc_add
(
buf
,
vf
);
vp
->
active
=
1
;
return
(
0
);
}
vp
=
mgt_vcc_add
(
buf
,
vf
);
vp
->
active
=
1
;
return
(
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