mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03: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
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
32d3cdede0
commit
0ada48dd53
@ -327,17 +327,17 @@ int CLIB_ROUTINE main( int argc, char** argv)
|
|||||||
{
|
{
|
||||||
// try to force core files creation
|
// try to force core files creation
|
||||||
raiseLimit(RLIMIT_CORE);
|
raiseLimit(RLIMIT_CORE);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef LINUX
|
#ifdef LINUX
|
||||||
// instruct kernel to include shared memory regions into core dump
|
// instruct kernel to include shared memory regions into core dump
|
||||||
FILE* coreproc = fopen("/proc/self/coredump_filter", "r+");
|
FILE* coreproc = fopen("/proc/self/coredump_filter", "r+");
|
||||||
if (coreproc)
|
if (coreproc)
|
||||||
{
|
{
|
||||||
fprintf(coreproc, "0x3f\n");
|
fprintf(coreproc, "0x3f\n");
|
||||||
fclose(coreproc);
|
fclose(coreproc);
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (defined SOLARIS || defined HPUX || defined LINUX)
|
#if (defined SOLARIS || defined HPUX || defined LINUX)
|
||||||
if (super)
|
if (super)
|
||||||
|
Loading…
Reference in New Issue
Block a user