8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 07:23:04 +01:00

Debugging enhancement - always copy shared file images to core dump
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
AlexPeshkoff 2023-04-28 18:19:36 +03:00
parent 32d3cdede0
commit 0ada48dd53

View File

@ -327,17 +327,17 @@ int CLIB_ROUTINE main( int argc, char** argv)
{
// try to force core files creation
raiseLimit(RLIMIT_CORE);
}
#ifdef LINUX
// instruct kernel to include shared memory regions into core dump
FILE* coreproc = fopen("/proc/self/coredump_filter", "r+");
if (coreproc)
{
fprintf(coreproc, "0x3f\n");
fclose(coreproc);
}
#endif
// instruct kernel to include shared memory regions into core dump
FILE* coreproc = fopen("/proc/self/coredump_filter", "r+");
if (coreproc)
{
fprintf(coreproc, "0x3f\n");
fclose(coreproc);
}
#endif
#if (defined SOLARIS || defined HPUX || defined LINUX)
if (super)