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
3ab1e305
Commit
3ab1e305
authored
Apr 13, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
dbf414c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
mgt_sandbox.c
bin/varnishd/mgt/mgt_sandbox.c
+1
-1
mgt_vcc.c
bin/varnishd/mgt/mgt_vcc.c
+3
-3
b00046.vtc
bin/varnishtest/tests/b00046.vtc
+1
-1
vsub.c
lib/libvarnish/vsub.c
+2
-2
No files found.
bin/varnishd/mgt/mgt_sandbox.c
View file @
3ab1e305
...
...
@@ -245,7 +245,7 @@ mgt_sandbox_unix(enum sandbox_e who)
/*--------------------------------------------------------------------*/
static void __match_proto__(sub_func_f)
static void __match_proto__(
v
sub_func_f)
run_sandbox_test(void *priv)
{
...
...
bin/varnishd/mgt/mgt_vcc.c
View file @
3ab1e305
...
...
@@ -77,7 +77,7 @@ static const char * const builtin_vcl =
* Invoke system VCC compiler in a sub-process
*/
static
void
static
void
__match_proto__
(
vsub_func_f
)
run_vcc
(
void
*
priv
)
{
char
*
csrc
;
...
...
@@ -122,7 +122,7 @@ run_vcc(void *priv)
* Invoke system C compiler in a sub-process
*/
static
void
static
void
__match_proto__
(
vsub_func_f
)
run_cc
(
void
*
priv
)
{
struct
vcc_priv
*
vp
;
...
...
@@ -172,7 +172,7 @@ run_cc(void *priv)
* Attempt to open compiled VCL in a sub-process
*/
static
void
__match_proto__
(
sub_func_f
)
static
void
__match_proto__
(
v
sub_func_f
)
run_dlopen
(
void
*
priv
)
{
void
*
dlh
;
...
...
bin/varnishtest/tests/b00046.vtc
View file @
3ab1e305
...
...
@@ -5,7 +5,7 @@ server s1 {
send_urgent " "
txresp
send_urgent " "
rxreq
send_urgent " "
txresp
...
...
lib/libvarnish/vsub.c
View file @
3ab1e305
...
...
@@ -100,13 +100,13 @@ VSUB_run(struct vsb *sb, vsub_func_f *func, void *priv, const char *name,
assert
(
dup2
(
p
[
1
],
STDOUT_FILENO
)
==
STDOUT_FILENO
);
assert
(
dup2
(
p
[
1
],
STDERR_FILENO
)
==
STDERR_FILENO
);
/* Close all other fds */
for
(
sfd
=
STDERR_FILENO
+
1
;
sfd
<
100
;
sfd
++
)
for
(
sfd
=
STDERR_FILENO
+
1
;
sfd
<
sysconf
(
_SC_OPEN_MAX
)
;
sfd
++
)
(
void
)
close
(
sfd
);
func
(
priv
);
/*
* func should either exec or exit, so getting here should be
* treated like an assertion failure - except that we don't know
* if it's sa
v
e to trigger an acutal assertion
* if it's sa
f
e to trigger an acutal assertion
*/
_exit
(
4
);
}
...
...
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