BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnCoreDumpGuard Class Reference

Class preventing 'core. More...

#include <BmnCoreDumpGuard.h>

Static Public Member Functions

static bool Install ()
static bool Uninstall ()
static bool IsInstalled ()

Private Member Functions

 BmnCoreDumpGuard ()
 ~BmnCoreDumpGuard ()

Static Private Attributes

static bool fgIsInstalled = false

Detailed Description

*' dumps when a BmnRoot process is terminated by a fatal signal. The guard is installed automatically when the library is loaded, so no changes in the macros are required. It works regardless of the 'ulimit -c' value and of the /proc/sys/kernel/core_pattern setting, which makes it usable on the user machines as well as on the cluster nodes.

Definition at line 10 of file BmnCoreDumpGuard.h.

Constructor & Destructor Documentation

◆ BmnCoreDumpGuard()

BmnCoreDumpGuard::BmnCoreDumpGuard ( )
inlineprivate

Definition at line 24 of file BmnCoreDumpGuard.h.

◆ ~BmnCoreDumpGuard()

BmnCoreDumpGuard::~BmnCoreDumpGuard ( )
inlineprivate

Definition at line 25 of file BmnCoreDumpGuard.h.

Member Function Documentation

◆ Install()

bool BmnCoreDumpGuard::Install ( )
static

Definition at line 80 of file BmnCoreDumpGuard.cxx.

References BmnFatalSignalHandler(), fgIsInstalled, gFatalSignalCount, gFatalSignals, gIsSignalGuarded, gPreviousActions, i, and memset().

Here is the call graph for this function:

◆ IsInstalled()

bool BmnCoreDumpGuard::IsInstalled ( )
inlinestatic

Definition at line 21 of file BmnCoreDumpGuard.h.

References fgIsInstalled.

◆ Uninstall()

bool BmnCoreDumpGuard::Uninstall ( )
static

Member Data Documentation

◆ fgIsInstalled

bool BmnCoreDumpGuard::fgIsInstalled = false
staticprivate

Definition at line 28 of file BmnCoreDumpGuard.h.

Referenced by Install(), IsInstalled(), and Uninstall().


The documentation for this class was generated from the following files: