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
464309df
Commit
464309df
authored
May 03, 2024
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Everybody have sigaltstack(2)
parent
b6153d8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
cache_main.c
bin/varnishd/cache/cache_main.c
+1
-11
configure.ac
configure.ac
+0
-1
No files found.
bin/varnishd/cache/cache_main.c
View file @
464309df
...
...
@@ -37,9 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_SIGALTSTACK
# include <sys/mman.h>
#endif
#include <sys/mman.h>
#ifdef HAVE_PTHREAD_NP_H
# include <pthread_np.h>
...
...
@@ -159,17 +157,13 @@ THR_GetName(void)
/*--------------------------------------------------------------------
* Generic setup all our threads should call
*/
#ifdef HAVE_SIGALTSTACK
static
stack_t
altstack
;
#endif
void
THR_Init
(
void
)
{
#ifdef HAVE_SIGALTSTACK
if
(
altstack
.
ss_sp
!=
NULL
)
AZ
(
sigaltstack
(
&
altstack
,
NULL
));
#endif
}
/*--------------------------------------------------------------------
...
...
@@ -341,7 +335,6 @@ child_sigmagic(size_t altstksz)
memset
(
&
sa
,
0
,
sizeof
sa
);
#ifdef HAVE_SIGALTSTACK
size_t
sz
=
vmax_t
(
size_t
,
SIGSTKSZ
+
4096
,
altstksz
);
altstack
.
ss_sp
=
mmap
(
NULL
,
sz
,
PROT_READ
|
PROT_WRITE
,
MAP_PRIVATE
|
MAP_ANONYMOUS
,
...
...
@@ -351,9 +344,6 @@ child_sigmagic(size_t altstksz)
altstack
.
ss_size
=
sz
;
altstack
.
ss_flags
=
0
;
sa
.
sa_flags
|=
SA_ONSTACK
;
#else
(
void
)
altstksz
;
#endif
THR_Init
();
...
...
configure.ac
View file @
464309df
...
...
@@ -225,7 +225,6 @@ AC_CHECK_FUNCS([nanosleep])
AC_CHECK_FUNCS([setppriv])
AC_CHECK_FUNCS([fallocate])
AC_CHECK_FUNCS([closefrom])
AC_CHECK_FUNCS([sigaltstack])
AC_CHECK_FUNCS([getpeereid])
AC_CHECK_FUNCS([getpeerucred])
AC_CHECK_FUNCS([fnmatch], [], [AC_MSG_ERROR([fnmatch(3) is required])])
...
...
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