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
bbf49428
Commit
bbf49428
authored
Aug 29, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore SIGSEGV and SIGABRT to SIG_DFL in child_signal_handler()
to prevent recursion.
parent
78be3917
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mgt_child.c
bin/varnishd/mgt/mgt_child.c
+7
-0
No files found.
bin/varnishd/mgt/mgt_child.c
View file @
bbf49428
...
...
@@ -263,9 +263,16 @@ static void __match_proto__()
child_signal_handler
(
int
s
,
siginfo_t
*
si
,
void
*
c
)
{
char
buf
[
1024
];
struct
sigaction
sa
;
(
void
)
c
;
/* Don't come back */
memset
(
&
sa
,
0
,
sizeof
sa
);
sa
.
sa_handler
=
SIG_DFL
;
(
void
)
sigaction
(
SIGSEGV
,
&
sa
,
NULL
);
(
void
)
sigaction
(
SIGABRT
,
&
sa
,
NULL
);
bprintf
(
buf
,
"Signal %d (%s) received at %p si_code %d"
,
s
,
strsignal
(
s
),
si
->
si_addr
,
si
->
si_code
);
VAS_Fail
(
__func__
,
...
...
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