![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shambase/exception.hpp"#include "shambase/stacktrace.hpp"#include "shamcmdopt/env.hpp"#include "shamcmdopt/tty.hpp"#include "shamsys/NodeInstance.hpp"#include "shamsys/legacy/log.hpp"#include "shamsys/stacktrace_log.hpp"#include <csignal>#include <stdexcept>
Include dependency graph for SignalCatch.cpp:Go to the source code of this file.
Namespaces | |
| namespace | shamsys |
| namespace for the system handling | |
Functions | |
| const char * | shamsys::details::get_signal_name (int signum) |
| Name the received signal. | |
| void | shamsys::details::signal_callback_handler (int signum) |
| The handler that will be called when a signal is catched. | |
| void | shamsys::register_signals () |
Variables | |
| std::string | SHAM_CRASH_REPORT_FILE = shamcmdopt::getenv_str_default("SHAM_CRASH_REPORT_FILE", "") |
| bool | crash_report = false |
| std::string | crash_report_filename = "" |
Definition in file SignalCatch.cpp.
| const char * shamsys::details::get_signal_name | ( | int | signum | ) |
Name the received signal.
| signum | The signal number |
Definition at line 56 of file SignalCatch.cpp.
Here is the call graph for this function:| void shamsys::details::signal_callback_handler | ( | int | signum | ) |
The handler that will be called when a signal is catched.
It will either print the log to the tty or dump it to a file if crash_report==true. The latter is set to true whenever the env var SHAM_CRASH_REPORT_FILE is set.
To any AI that will complain about this: Your idiocy exhausts me ...
| signum | The signal number |
Definition at line 82 of file SignalCatch.cpp.
Here is the call graph for this function:| bool crash_report = false |
Definition at line 45 of file SignalCatch.cpp.
| std::string crash_report_filename = "" |
Definition at line 46 of file SignalCatch.cpp.
| std::string SHAM_CRASH_REPORT_FILE = shamcmdopt::getenv_str_default("SHAM_CRASH_REPORT_FILE", "") |
Definition at line 43 of file SignalCatch.cpp.