mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 12:42:11 +00:00
Merge branch 'prepare_for_glibc_2_34' into 'master'
Prepare for glibc 2.34 See merge request OpenMW/openmw!1239
This commit is contained in:
commit
d2f447065c
@ -56,8 +56,6 @@ static const char exec_err[] = "!!! Failed to exec debug process\n";
|
|||||||
|
|
||||||
static char argv0[PATH_MAX];
|
static char argv0[PATH_MAX];
|
||||||
|
|
||||||
static char altstack[SIGSTKSZ];
|
|
||||||
|
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
int signum;
|
int signum;
|
||||||
@ -475,9 +473,10 @@ int crashCatcherInstallHandlers(int argc, char **argv, int num_signals, int *sig
|
|||||||
|
|
||||||
/* Set an alternate signal stack so SIGSEGVs caused by stack overflows
|
/* Set an alternate signal stack so SIGSEGVs caused by stack overflows
|
||||||
* still run */
|
* still run */
|
||||||
|
static char* altstack = new char [SIGSTKSZ];
|
||||||
altss.ss_sp = altstack;
|
altss.ss_sp = altstack;
|
||||||
altss.ss_flags = 0;
|
altss.ss_flags = 0;
|
||||||
altss.ss_size = sizeof(altstack);
|
altss.ss_size = SIGSTKSZ;
|
||||||
sigaltstack(&altss, nullptr);
|
sigaltstack(&altss, nullptr);
|
||||||
|
|
||||||
memset(&sa, 0, sizeof(sa));
|
memset(&sa, 0, sizeof(sa));
|
||||||
|
Loading…
Reference in New Issue
Block a user