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
3670ad6d
Commit
3670ad6d
authored
Oct 22, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure complaints from (je)malloc aren't lost, at least on FreeBSD.
parent
6ca1aef1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
cache_main.c
bin/varnishd/cache/cache_main.c
+13
-0
No files found.
bin/varnishd/cache/cache_main.c
View file @
3670ad6d
...
...
@@ -188,6 +188,16 @@ static struct cli_proto debug_cmds[] = {
* XXX: Think more about which order we start things
*/
#ifdef __FreeBSD__
static
void
child_malloc_fail
(
void
*
p
,
const
char
*
s
)
{
VSL
(
SLT_Error
,
0
,
"MALLOC ERROR: %s (%p)"
,
s
,
p
);
fprintf
(
stderr
,
"MALLOC ERROR: %s (%p)
\n
"
,
s
,
p
);
WRONG
(
"Malloc Error"
);
}
#endif
void
child_main
(
void
)
{
...
...
@@ -195,6 +205,9 @@ child_main(void)
setbuf
(
stdout
,
NULL
);
setbuf
(
stderr
,
NULL
);
printf
(
"Child starts
\n
"
);
#ifdef __FreeBSD__
malloc_message
=
child_malloc_fail
;
#endif
cache_param
=
heritage
.
param
;
...
...
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