BmnRoot 26.10.0-18-g4e3414f9
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 ()
static bool Install ()
static bool Uninstall ()
static bool IsInstalled ()

Private Member Functions

 BmnCoreDumpGuard ()
 ~BmnCoreDumpGuard ()
 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() [1/2]

BmnCoreDumpGuard::BmnCoreDumpGuard ( )
inlineprivate

Definition at line 24 of file BmnCoreDumpGuard.h.

◆ ~BmnCoreDumpGuard() [1/2]

BmnCoreDumpGuard::~BmnCoreDumpGuard ( )
inlineprivate

Definition at line 25 of file BmnCoreDumpGuard.h.

◆ BmnCoreDumpGuard() [2/2]

BmnCoreDumpGuard::BmnCoreDumpGuard ( )
inlineprivate

Definition at line 24 of file BmnCoreDumpGuard.h.

◆ ~BmnCoreDumpGuard() [2/2]

BmnCoreDumpGuard::~BmnCoreDumpGuard ( )
inlineprivate

Definition at line 25 of file BmnCoreDumpGuard.h.

Member Function Documentation

◆ Install() [1/2]

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:

◆ Install() [2/2]

bool BmnCoreDumpGuard::Install ( )
static

◆ IsInstalled() [1/2]

bool BmnCoreDumpGuard::IsInstalled ( )
inlinestatic

Definition at line 21 of file BmnCoreDumpGuard.h.

References fgIsInstalled.

◆ IsInstalled() [2/2]

bool BmnCoreDumpGuard::IsInstalled ( )
inlinestatic

Definition at line 21 of file BmnCoreDumpGuard.h.

References fgIsInstalled.

◆ Uninstall() [1/2]

bool BmnCoreDumpGuard::Uninstall ( )
static

◆ Uninstall() [2/2]

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: