Skip to content

Commit

Permalink
Debugging enhancement - always copy shared file images to core dump
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPeshkoff committed Apr 28, 2023
1 parent 3a5830d commit 3019afa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/remote/server/os/posix/inet_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,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)
Expand Down

0 comments on commit 3019afa

Please sign in to comment.