HOTFIX: force DFT wisdom save at exit

master
Xavier Arteaga 3 years ago committed by Ismael Gomez
parent 28e25b12b4
commit 1aa65bd10c

@ -33,6 +33,8 @@ extern "C" {
static srslog::sink* log_sink = nullptr;
static std::atomic<bool> running = {true};
void srsran_dft_exit();
static void srsran_signal_handler(int signal)
{
switch (signal) {
@ -43,6 +45,7 @@ static void srsran_signal_handler(int signal)
if (log_sink) {
log_sink->flush();
}
srsran_dft_exit();
raise(SIGKILL);
default:
// all other registered signals try to stop the app gracefully

@ -71,7 +71,7 @@ __attribute__((constructor)) static void srsran_dft_load()
}
// This function is called in the ending of any executable where it is linked
__attribute__((destructor)) static void srsran_dft_exit()
__attribute__((destructor)) void srsran_dft_exit()
{
#ifdef FFTW_WISDOM_FILE
char full_path[256];

Loading…
Cancel
Save