mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 14:03:07 +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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user