File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4430,6 +4430,7 @@ jlib_decl bool printLsOf(unsigned pid)
4430
4430
// Memory monitoring and core dump functionality
4431
4431
// ---------------------------------------------------------------------------------------------------------------------
4432
4432
4433
+ #ifdef __linux__
4433
4434
static void createCoreDumpProcessAndWait (bool useVforkAndGcore, pid_t pid)
4434
4435
{
4435
4436
char gCoreFname [64 ];
@@ -4478,7 +4479,6 @@ static void createCoreDumpProcessAndWait(bool useVforkAndGcore, pid_t pid)
4478
4479
4479
4480
void generateCoreDump (bool useVforkAndGcore, bool suspendParent)
4480
4481
{
4481
- #ifdef __linux__
4482
4482
pid_t parentPid = getpid ();
4483
4483
4484
4484
if (suspendParent)
@@ -4531,10 +4531,13 @@ void generateCoreDump(bool useVforkAndGcore, bool suspendParent)
4531
4531
// however, the core child process's execution of abort() or gcore will suspend the process.
4532
4532
createCoreDumpProcessAndWait (useVforkAndGcore, parentPid);
4533
4533
}
4534
+ }
4534
4535
#else
4536
+ void generateCoreDump (bool useVforkAndGcore, bool suspendParent)
4537
+ {
4535
4538
WARNLOG (" generateCoreDump: Core dump generation not supported\n " );
4536
- #endif
4537
4539
}
4540
+ #endif
4538
4541
4539
4542
class CMemoryMonitor : public CSimpleInterfaceOf <IMemoryMonitor>, public IThreaded
4540
4543
{
You can’t perform that action at this time.
0 commit comments